Speaker identification

ABSTRACT

A method of speaker identification comprises receiving an audio signal representing speech; performing a first voice biometric process on the audio signal to attempt to identify whether the speech is the speech of an enrolled speaker; and, if the first voice biometric process makes an initial determination that the speech is the speech of an enrolled user, performing a second voice biometric process on the audio signal to attempt to identify whether the speech is the speech of the enrolled speaker. The second voice biometric process is selected to be more discriminative than the first voice biometric process.

This application is a continuation-in-part of U.S. patent application Ser. No. 16/255,390, filed Jan. 23, 2019, which is a continuation-in-part of U.S. patent application Ser. No. 15/877,660, filed Jan. 23, 2018, and claims priority to United Kingdom Patent Application Serial No. 1809474.8, filed Jun. 8, 2018, and U.S. Provisional Patent Application Ser. No. 62/733,755, filed Sep. 20, 2018, each of which is incorporated by reference herein in its entirety.

TECHNICAL FIELD

Embodiments described herein relate to methods and devices for analysing speech signals.

BACKGROUND

Many devices include microphones, which can be used to detect ambient sounds. In many situations, the ambient sounds include the speech of one or more nearby speaker. Audio signals generated by the microphones can be used in many ways. For example, audio signals representing speech can be used as the input to a speech recognition system, allowing a user to control a device or system using spoken commands.

SUMMARY

According to an aspect of the invention, there is provided a method of speaker identification, comprising:

-   -   receiving an audio signal representing speech;     -   performing a first voice biometric process on the audio signal         to attempt to identify whether the speech is the speech of an         enrolled speaker; and     -   if the first voice biometric process makes an initial         determination that the speech is the speech of an enrolled user,         performing a second voice biometric process on the audio signal         to attempt to identify whether the speech is the speech of the         enrolled speaker,     -   wherein the second voice biometric process is selected to be         more discriminative than the first voice biometric process.

In some embodiments, the second voice biometric process is configured to have a lower False Acceptance Rate than the first voice biometric process.

In some embodiments, the second voice biometric process is configured to have a lower False Rejection Rate than the first voice biometric process.

In some embodiments, the second voice biometric process is configured to have a lower Equal Error Rate than the first voice biometric process.

In some embodiments, the first voice biometric process is selected as a relatively low power process compared to the second voice biometric process.

In some embodiments, the method comprises making a decision as to whether the speech is the speech of the enrolled speaker, based on a result of the second voice biometric process.

In some embodiments, the method comprises making a decision as to whether the speech is the speech of the enrolled speaker, based on a fusion of a result of the first voice biometric process and a result of the second voice biometric process.

In some embodiments, the first voice biometric process is selected from the following: a process based on analysing a long-term spectrum of the speech; a method using a Gaussian Mixture Model; a method using Mel Frequency Cepstral Coefficients; a method using Principal Component Analysis; a Joint Factor Analysis process; a Tied Mixture of Factor Analyzers process; a method using machine learning techniques such as Deep Neural Nets (DNNs) or Convolutional Neural Nets (CNNs); and a method using a Support Vector Machine.

In some embodiments, the second voice biometric process is selected from the following: a method using a Gaussian Mixture Model; a neural net process, a Joint Factor Analysis process; a Tied Mixture of Factor Analyzers process; a method using machine learning techniques such as Deep Neural Nets (DNNs) or Convolutional Neural Nets (CNNs); an x-vector process; and an i-vector process.

In some embodiments, the second voice biometric process is a different type of process from the first voice biometric process. That is, the first voice biometric process might be a process selected from the first list above, while the second voice biometric process might be a different process selected from the second list above.

In some other embodiments, the first and second voice biometric processes might be the same type of process, but with the second voice biometric process configured to be more discriminative than the first. For example, the first and second voice biometric processes might both use Gaussian Mixture Models, with the second process using more mixtures. More specifically, the first voice biometric process might be a 16 mixture Gaussian Mixture Model, while the second voice biometric process might be a 4096 mixture Gaussian Mixture Model. As another example, the first and second voice biometric processes might both use Deep Neural Nets, with the second process using more weights. In both of these cases, the second more discriminative process might be trained with more data.

In some embodiments, the first voice biometric process is performed in a first device and the second voice biometric process is performed in a second device remote from the first device. The first device may comprise a wearable device such as a headset device, a smart glasses device, a smart watch device. The second device may comprise a host device such as a mobile phone or tablet computer. In some embodiments, the first device may be provided as part of a CODEC device or chip, or as part of a digital microphone device or chip. In some embodiments, the second device may be provided as part of a central processor such as an applications processor, or as part of a dedicated biometrics processor device or chip. In particular, the first device may be provided as part of a CODEC device or chip, or as part of a digital microphone device or chip, within a product such as a mobile phone, tablet computer, smart speaker or home automation controller, while the second device is provided as part of a central processor such as an applications processor, or as part of a dedicated biometrics processor device or chip, within the same product.

In one aspect of the invention, there is provided a first device configured to perform the first voice biometric process, and in another aspect of the invention there is provided a second device configured to perform the second voice biometric process.

In some embodiments, the method comprises maintaining the second voice biometric process in a low power state, and activating the second voice biometric process if the first voice biometric process makes an initial determination that the speech is the speech of an enrolled user. The second biometric process is power-gated by the first biometric process. This can allow for the first biometric process to operate in a relatively low-power zone of a device, while the second biometric process may be provided in a relatively high-power zone of a device, e.g. within an applications processor or similar.

In some embodiments, the method comprises activating the second voice biometric process in response to an initial determination based on a partial completion of the first voice biometric process that the speech might be the speech of an enrolled user, and deactivating the second voice biometric process in response to a determination based on a completion of the first voice biometric process that the speech is not the speech of the enrolled user.

In some embodiments, the method comprises:

-   -   detecting a trigger phrase in the received audio signal; and     -   responsive to the detecting of a trigger phrase, performing the         first voice biometric process on the received audio signal.

In some embodiments, the method comprises:

-   -   detecting voice activity in the received audio signal; and     -   responsive to the detecting of voice activity, performing the         first voice biometric process on at least a part of the received         audio signal.

In some embodiments, the method comprises:

-   -   detecting voice activity in the received audio signal;     -   responsive to the detecting of voice activity, performing         keyword detection; and     -   responsive to detecting a keyword, performing the first voice         biometric process on at least a part of the received audio         signal.

In some embodiments, the method comprises:

-   -   performing the first voice biometric process on the entire         received audio signal.

In some embodiments, the method comprises using an initial determination by the first voice biometric process, that the speech is the speech of an enrolled user, as an indication that the received audio signal comprises speech.

In some embodiments, the method comprises:

-   -   performing at least a part of a voice biometric process suitable         for determining whether a signal contains speech of an enrolled         user, and generating an output signal when it is determined that         the signal contains human speech.

In some embodiments, the method comprises comparing a similarity score with a first threshold to determine whether the signal contains speech of an enrolled user, and comparing the similarity score with a second, lower, threshold to determine whether the signal contains speech.

In some embodiments, the method comprises determining that the signal contains human speech before it is possible to determine whether the signal contains speech of an enrolled user.

In some embodiments, the first voice biometric process is configured as an analog processing system, and the second voice biometric process is configured as a digital processing system.

According to one aspect, there is provided a speaker identification system, comprising:

-   -   an input for receiving an audio signal representing speech;     -   a first processor for performing a first voice biometric process         on the audio signal to attempt to identify whether the speech is         the speech of an enrolled speaker; and     -   a second processor for performing a second voice biometric         process on the audio signal to attempt to identify whether the         speech is the speech of the enrolled speaker,     -   wherein the second voice biometric process is initiated if the         first voice biometric process makes an initial determination         that the speech is the speech of an enrolled user, and     -   wherein the second voice biometric process is selected to be         more discriminative than the first voice biometric process.

In some embodiments, the speaker identification system further comprises:

-   -   a buffer, for storing the received audio signal, and for         supplying the stored received audio signal to the second voice         biometric process if the first voice biometric process makes an         initial determination that the speech is the speech of an         enrolled user.

In some embodiments, the second voice biometric process is configured to have a lower False Acceptance Rate than the first voice biometric process.

In some embodiments, the second voice biometric process is configured to have a lower False Rejection Rate than the first voice biometric process.

In some embodiments, the second voice biometric process is configured to have a lower Equal Error Rate than the first voice biometric process.

In some embodiments, the first voice biometric process is selected as a relatively low power process compared to the second voice biometric process.

In some embodiments, the speaker identification system is configured for making a decision as to whether the speech is the speech of the enrolled speaker, based on a result of the second voice biometric process.

In some embodiments, the speaker identification system is configured for making a decision as to whether the speech is the speech of the enrolled speaker, based on a fusion of a result of the first voice biometric process and a result of the second voice biometric process.

In some embodiments, the first voice biometric process is selected from the following: a process based on analysing a long-term spectrum of the speech; a method using a Gaussian Mixture Model; a method using Mel Frequency Cepstral Coefficients; a method using Principal Component Analysis; a Joint Factor Analysis process; a Tied Mixture of Factor Analyzers process; a method using machine learning techniques such as Deep Neural Nets (DNNs) or Convolutional Neural Nets (CNNs); and a method using a Support Vector Machine.

In some embodiments, the second voice biometric process is selected from the following: a neural net process, a Joint Factor Analysis process; a Tied Mixture of Factor Analyzers process; a method using machine learning techniques such as Deep Neural Nets (DNNs) or Convolutional Neural Nets (CNNs); and an i-vector process or an x-vector process.

In some embodiments, the speaker identification system comprises:

-   -   a first device; and     -   a second device,     -   wherein the first device includes the first processor, and the         second device includes the second processor.

In some embodiments, the first device comprises a first integrated circuit, and the second device comprises a second integrated circuit.

In some embodiments, the first device comprises a dedicated biometrics integrated circuit.

In some embodiments, the first device is an accessory device.

In some embodiments, the first device is a listening device.

In some embodiments, the second device comprises an applications processor.

In some embodiments, the second device is a handset device.

In some embodiments, the second device is a smartphone.

In some embodiments, the speaker identification system comprises:

-   -   a trigger phrase detector for attempting to detect a trigger         phrase in the received audio signal,     -   wherein the first processor is responsive to the trigger phrase         detector, and configured to perform the first voice biometric         process on the received audio signal in response to detecting of         a trigger phrase.

In some embodiments, the speaker identification system comprises:

-   -   a voice activity detector for attempting to detect human speech         in the received audio signal,     -   wherein the first processor is responsive to the trigger phrase         detector, and configured to perform the first voice biometric         process on the received audio signal responsive to detecting of         voice activity.

In some embodiments, the first processor is configured to receive the entire received audio signal for performing the first voice biometric process thereon.

In some embodiments, the first voice biometric process is configured as an analog processing system, and the second voice biometric process is configured as a digital processing system.

In one aspect of the invention, there is provided a first device as defined above, comprising said first processor.

In another aspect of the invention there is provided a second device as defined above, comprising said second processor.

According to another aspect of the present invention, there is provided a device comprising at least a part of such a system. The device may comprise a mobile telephone, an audio player, a video player, a mobile computing platform, a games device, a remote controller device, a toy, a machine, or a home automation controller or a domestic appliance.

According to an aspect, there is provided a processor integrated circuit for use in a speaker identification system, the processor integrated circuit comprising:

-   -   an input for receiving an audio signal representing speech;     -   a first processor for performing a first voice biometric process         on the audio signal to attempt to identify whether the speech is         the speech of an enrolled speaker; and     -   an output, for providing the audio signal to a separate device         if the first voice biometric process makes an initial         determination that the speech is the speech of an enrolled user.

In some embodiments, the processor integrated circuit further comprises:

-   -   a buffer, for storing the received audio signal, and for         supplying the stored received audio signal to the output if the         first voice biometric process makes an initial determination         that the speech is the speech of an enrolled user.

In some embodiments, the first voice biometric process is selected from the following: a process based on analysing a long-term spectrum of the speech; a method using a Gaussian Mixture Model; a method using Mel Frequency Cepstral Coefficients; a method using Principal Component Analysis; a method using machine learning techniques such as Deep Neural Nets (DNNs); and a method using a Support Vector Machine.

In some embodiments, the first voice biometric process is configured as an analog processing system.

In some embodiments, the processor integrated circuit further comprises an anti-spoofing block, for performing one or more tests on the received signal to determine whether the received signal has properties that may indicate that it results from a replay attack.

Preferably, the first processor, or the device performing the first voice biometric process on the audio signal, is configured to perform a spoof detection process on the audio signal, to identify if the audio signal is the result of a replay attack,

-   -   wherein the output of the first voice biometric process is gated         by the output of the spoof detection process, such that if a         spoof attack is detected, the first voice biometric process is         prevented from initiating the second voice biometric process.

In a preferred aspect, the spoof detection process comprises a relatively low-power spoof detection process. In one example, the spoof detection process involves analysing the received audio signal to detect low-frequency power levels (for example the power levels at frequencies below 100 Hz). If the low-frequency power levels are below a threshold level, this may indicate that the received audio signal is a result of detecting sound resulting from playing a signal through a loudspeaker rather than speech generated by a live person. The received audio signal may then be flagged as a spoof.

According to an aspect, there is provided a processor integrated circuit for use in a speaker identification system, the processor integrated circuit comprising:

-   -   an input for receiving an audio signal representing speech;     -   a second processor for performing a second voice biometric         process on the audio signal to attempt to identify whether the         speech is the speech of the enrolled speaker, wherein the second         voice biometric process is initiated if a first voice biometric         process performed on a separate device makes an initial         determination that the speech is the speech of an enrolled user,         and     -   wherein the second voice biometric process is selected to be         more discriminative than the first voice biometric process.

In some embodiments, the processor integrated circuit comprises a decision block, for making a decision as to whether the speech is the speech of the enrolled speaker, based on a result of the second voice biometric process.

In some embodiments, the processor integrated circuit comprises a decision block, for making a decision as to whether the speech is the speech of the enrolled speaker, based on a fusion of a result of the first voice biometric process performed on the separate device and a result of the second voice biometric process.

In some embodiments, the second voice biometric process is selected from the following: a neural net process, a Joint Factor Analysis process; a Tied Mixture of Factor Analyzers process; and an i-vector process.

In some embodiments, the second device comprises an applications processor.

According to another aspect of the present invention, there is provided a computer program product, comprising a computer-readable tangible medium, and instructions for performing a method according to the first aspect.

According to another aspect of the present invention, there is provided a non-transitory computer readable storage medium having computer-executable instructions stored thereon that, when executed by processor circuitry, cause the processor circuitry to perform a method according to the first aspect.

According to another aspect of the present invention, there is provided a method of voice activity detection, the method comprising performing at least a part of a voice biometric process suitable for determining whether a signal contains speech of an enrolled user, and generating an output signal when it is determined that the signal contains human speech.

The method may comprise comparing a similarity score with a first threshold to determine whether the signal contains speech of an enrolled user, and comparing the similarity score with a second, lower, threshold to determine whether the signal contains speech.

The method may comprise determining that the signal contains human speech before it is possible to determine whether the signal contains speech of an enrolled user.

According to an aspect of the invention, there is provided a speaker verification method to provide a speaker verification output comprising the steps of:

-   -   receiving audio comprising speech;     -   performing a speaker verification process on the received audio,         the speaker verification process configured to output:         -   (i) a speaker ID score representing the likelihood that the             received speech is from a particular speaker, and         -   (ii) a sound classification representing the likelihood that             the received speech is a particular acoustic class;     -   performing an audio validation process on the received audio to         generate an output that the received audio is valid or invalid,         wherein the audio validation process is based at least in part         on the sound classification from the speaker verification         process; and     -   gating the output of the speaker verification process based on         the output of the audio validation process, to ensure that the         method only provides a speaker verification output for valid         received audio.

Gating the speaker verification output by using an audio validity check to confirm that the received audio is valid ensures that the speaker verification result is only used for audio which is not from a replay attack or a spoof attack, and additionally or alternatively, ensures that the received audio used in the speaker verification is from the same speaker, and is not from a combative or tail-gating attack. By using the sound classification output from the speaker verification process in the audio validation process, accordingly the resources required for such an audio validation process can be minimised, and associated latency reduced.

It will be understood that if the speaker ID score satisfies a predefined condition, e.g. a speaker probability score or log likelihood ratio exceeds a predefined probability threshold, or a speaker distance score is beneath a predefined distance threshold, accordingly the speaker verification method may output an indication that the received audio is spoken by an identified speaker.

In one aspect, the speaker verification output comprises an indication that the received audio is spoken by an identified speaker, based on the speaker ID score output by the speaker verification process. It will be understood that if the speaker ID score satisfies a predefined condition, e.g. a speaker probability score exceeds a predefined probability threshold or log likelihood ratio, or a speaker distance score is beneath a predefined distance threshold, accordingly the method may generate the speaker verification output based on the satisfied condition.

In an additional or alternative aspect, the speaker ID score output by the speaker verification process may be provided as the speaker verification output for the method. It will be further understood that such an indication of an identified speaker may be output in combination with the speaker ID score.

The sound classification will be understood as an indication of the acoustic classes present in received audio, for example sound mixtures, phonemes, phones, senones, etc.

In a preferred aspect, the audio validation process is additionally based at least in part on the speaker ID score from the speaker verification process.

Preferably, the step of performing an audio validation process comprises:

-   -   performing an anti-spoofing (AS) process based on the received         audio and the sound classification.

The anti-spoofing process comprises determining the probability of a replay attack or a presentation attack on the speaker verification method.

An example of an anti-spoofing process using received audio and an indication of the acoustic classes present in speech can be found in co-pending U.S. patent application Ser. No. 16/050,593, the contents of which are incorporated by reference herein.

Additionally, the anti-spoofing process may comprise:

-   -   an ultrasonic-power-level-based anti-spoofing system, such as         those described in U.S. patent application Nos. 62/571,944,         62/572,016, Ser. No. 15/980,491, the contents of which are         incorporated by reference herein;     -   a magnetic-power-level-based anti-spoofing system, such as those         described in co-pending U.S. patent application Ser. Nos.         16/020,406, 16/018,795, the contents of which are incorporated         by reference herein;     -   a loudspeaker-detection-based anti-spoofing system, such as         those described in U.S. patent application Nos. 62/571,959,         62/585,721, 62/585,660, 62/571,978, Ser. No. 16/017,072, the         contents of which are incorporated by reference herein.

In embodiments wherein multiple different anti-spoofing processes are performed, it will be understood that the outputs of such different anti-spoofing processes may be combined or fused to provide an anti-spoofing decision. In the case of combining or fusing the outputs, the output values of the different processes may be provided with different weights to account for such factors as the usage situations or environment, device characteristics, etc.

Preferably, the step of performing an audio validation process comprises:

-   -   performing a speaker change detection (SCD) process based on a         combination of at least one or more of the following: the         speaker ID score; the sound classification; the received audio.

Preferably, the SCD process is based on a time-windowed speaker ID score, such as that described in co-pending U.S. patent application Ser. No. 16/122,033, the contents of which are incorporated by reference herein. The SCD process may be performed on statistics derived from a frame-by-frame scoring of the received audio.

Additionally or alternatively, the SCD process may comprise:

-   -   monitoring for a change in the fundamental frequency, or F0, of         the received audio;     -   monitoring for a change in the distribution of the acoustic         classes of the received audio identified from the sound         classification;     -   monitoring for a change in the fundamental frequency of the         received audio for a particular acoustic class identified from         the sound classification;     -   accent tracking;     -   emotion tracking;     -   any other suitable speaker change detection method, such as that         described in (Ajmera, Jitendra & Mccowan, Iain & Bourlard,         Herve. (2004). Robust Speaker Change Detection. Signal         Processing Letters, IEEE. 11. 649-651. 10.1109/LSP.2004.831666).

The SCD process defines accurate boundaries for the processing of the received audio, and prevents exploitation of the speaker verification method by combative or tail-gating attacks.

In embodiments wherein multiple different SCD processes are performed, it will be understood that the outputs of such different SCD processes may be combined or fused to provide an SCD decision. In the case of combining or fusing the outputs, the output values of the different processes may be provided with different weights to account for such factors as the usage situations or environment, device characteristics, etc.

In some embodiments, the output of the SCD process may be used as an input to the speaker verification process, wherein the output of the SCD process defines that portion of the received audio on which a speaker verification process should be performed. For example, if the SCD process analyses speaker scores on a frame-by-frame basis to determine the point of speaker change, then the SCD output may define the total range of frames to process to determine the final speaker ID score, as it has been determined that all of those frames are spoken by the same speaker.

Preferably, the method further comprises the steps of:

-   -   buffering the received audio; and     -   responsive to the step of gating the output of the speaker         verification process, outputting the valid speaker recognition         output and the buffered audio.

By outputting the received audio along with the valid speaker recognition output, accordingly the further processing of the received audio may be performed, with an initial determination that the received audio is that of a particular speaker. Such additional processing may comprise speech recognition of the received audio for use in command processing, or the received audio may be processed using a more discriminative speaker recognition process, for example for relatively high security operations.

Preferably, the step of performing a speaker recognition process comprises:

-   -   performing a plurality of different speaker recognition         processes to provide a respective plurality of speaker         recognition scores, and     -   fusing the plurality of speaker recognition scores to provide         the speaker ID score.

By performing a number of different speaker recognition processes and fusing the results, accordingly a more accurate overall speaker ID score can be provided. Preferably, the different speaker recognition processes are selected to have low correlation between the approaches, so that the fusion of the respective speaker recognition scores provides an improved or more accurate speaker ID score, due to the low cross-correlation between the processes used.

Preferably, the speaker recognition processes comprises one or more of the following:

-   -   a Gaussian Mixture Model (GMM) based approach;     -   a Joint Factor Analysis (JFA) based approach;     -   a speaker recognition process based on tracking of the         fundamental frequency of a speaker, for example as described in         U.S. patent application No. 62/728,421, the contents of which         are incorporated by reference herein;     -   a machine learning or deep neural net based process (ML-DNN).

Preferably, the step of performing a speaker recognition process comprises the steps of:

-   -   performing a classification of the received audio to identify a         sound classification, the sound classification identifying         acoustic classes present in the received audio; and     -   based on the identified sound classification, scoring the         received audio against a stored template of the acoustic classes         produced by enrolled speakers to identify a speaker for the         received audio from the enrolled speakers.

The scoring may comprise a distance calculation, probability metrics, a log likelihood ratio, or any suitable scoring technique for use in speaker recognition, for example as described in “Fundamentals of Speaker Recognition,” Homayoon Beigi. ISBN: 978-0-387-77592-0.

Preferably, the method comprises the step of:

-   -   performing a feature extraction on the received audio, and         wherein said step of performing a speaker recognition process is         performed on the feature extract version of the received audio.

Preferably, the step of performing a speaker recognition process is performed responsive to receipt of a trigger signal, for example a keyword detection.

Preferably, the method comprises the step of monitoring for a trigger signal, for example performing a voice keyword detection process.

Alternatively, the step of performing a speaker recognition process is performed continuously for all received audio.

In such an embodiment, preferably, the method comprises the step of generating an output from the speaker verification process responsive to a trigger detection, such as a keyword detect.

Alternatively, in such an embodiment, the step of gating the output of the speaker verification process is based on or responsive to a trigger detection, such as a keyword detect.

There is further provided a speaker recognition method comprising the steps of:

-   -   performing at least a portion of the above-described method         steps as part of a primary biometrics scoring; and     -   performing a secondary biometrics scoring based on the received         audio to provide a second speaker ID score, the secondary         biometrics scoring performed responsive to the step of gating of         a speaker verification output for valid received audio from the         primary biometrics scoring,     -   wherein the secondary biometrics scoring is selected to be         different to the primary biometrics scoring.

The use of such a two-stage biometrics scoring system allows for the primary biometrics scoring to be a relatively low-power and/or always-on solution, while the secondary biometrics scoring may be a relatively high-power and/or occasionally triggered solution, or a solution power-gated by the primary biometrics scoring. The second speaker ID score may be output as a simple flag to identify the notionally verified speaker, or the second speaker ID score may be output as a probability value or a distance metric as appropriate. Further details on an appropriate method incorporating such primary and secondary biometrics scoring may be found in co-pending U.S. patent application Ser. No. 15/877,660, the contents of which are incorporated by reference herein. The primary biometrics scoring may be performed as part of a relatively low power system, e.g. an always-on system.

Preferably, the method comprises the step of fusing the speaker ID score from the primary biometrics scoring with the second speaker ID score of the secondary biometrics scoring to provide a speaker authentication result.

Preferably, the speaker recognition method is configured such that:

-   -   the primary biometrics scoring is selected to have a relatively         high False Acceptance Rate (FAR), and a relatively low False         Rejection Rate (FRR).

Preferably, the secondary biometrics scoring is selected to have a relatively low FAR.

By selecting the particular biometrics techniques to provide such performance, and/or by tuning the primary and secondary biometrics scoring systems to this effect, accordingly the eventual fusion of the primary and secondary scores results in a robust speaker recognition approach having combined low FAR and FRR scores.

There is further provided a system for implementing steps of above method.

Preferably, there is provided a speaker verification system to provide a speaker verification output, the system comprising:

-   -   an input for receiving an audio signal comprising speech;     -   a speaker verification module coupled with the input, the         speaker verification module arranged to process the audio signal         to provide:         -   (i) a speaker ID score representing the likelihood that the             received speech is from a particular speaker, and         -   (ii) a sound classification representing the likelihood that             the received speech is a particular acoustic class;     -   an audio validation module coupled with the input and the         speaker verification module, the audio validation module         arranged to generate an output that the received audio is valid         or invalid, the output based at least in part on the sound         classification provided by the speaker verification module; and     -   a gating module configured to gate the output of the speaker         verification module based on the output of the audio validation         module, such that the speaker verification system only provides         a speaker verification output for valid received audio.

In a further aspect, there is provided a multi-stage speaker verification system, the system comprising:

-   -   an input to receive an audio signal comprising speech;     -   a first device including a first processor, the first device         comprising the above-described speaker verification system, the         first device arranged to provide a first speaker verification         output based on the received audio signal; and     -   a second device including a second processor, the second device         coupled with the first device, the second device configured to         perform a secondary biometrics scoring based on the received         audio signal to provide a second speaker verification output,         the secondary biometrics scoring performed responsive to the         receipt of a first speaker verification output from the first         device,     -   wherein the secondary biometrics scoring is selected to be more         discriminative than, different to, or more accurate than the         primary biometrics scoring.

Preferably, the system further comprises a fusion module, wherein the fusion module is arranged to fuse the first speaker verification output and the second speaker verification output to provide a fused speaker verification output.

Preferably, the first device is provided as a first integrated circuit, and the second device is provided as a second integrated circuit. In some embodiments, the first device may be provided as part of a CODEC device or chip, or as part of a digital microphone device or chip. By providing the first device in a CODEC or as part of a digital microphone, accordingly the first biometrics process can be performed on the audio as it is received by the system, and can reduce the risk of distortion of audio due to conversion losses, bandwidth restrictions, etc., and/or reduce the risk of malicious attacks on the audio stream by reducing the possible attack vectors between the point where the audio is received and where the first biometric process is performed. In some embodiments, the second device may be provided as part of a central processor such as an applications processor, or as part of a dedicated biometrics processor device or chip.

Preferably the first device is provided as a relatively low-power, always-on device, and the second device is provided as a relatively high-power, occasionally triggered device, preferably power-gated by the first device.

Preferably, the first and second devices are communicatively coupled. Preferably, the first and second devices are provided as elements of the same system, e.g. components of a mobile phone or tablet computer.

The first device may be communicatively coupled with second device, at least in part via a wireless connection. For example, the first device may be provided in a headset system wirelessly coupled with the second device provided in a host system such as a mobile phone.

In one aspect of the invention, there is provided the first device of the multi-stage speaker verification system, wherein the first device is provided with an output for wired or wireless connection to the second device.

In another aspect of the invention, there is provided the second device of the multi-stage speaker verification system, wherein the second device is provided with an input for wired or wireless connection to the first device.

In a further aspect, the first voice biometric process may be replaced by any other suitable biometric process, for example an ear biometric process. It will be understood that the above details may equally apply to embodiments wherein the first voice biometric process is replaced by any other suitable biometric process.

Preferably, there is provided a method of user identification, comprising:

-   -   receiving a first acoustic signal representing an acoustic         response received proximate a user's ear;     -   performing an ear biometric process on the first acoustic signal         to attempt to identify whether the acoustic response is         indicative of the ear of an enrolled user;     -   receiving a second audio signal representing speech; and     -   if the ear biometric process makes an initial determination that         the audio response is indicative of the ear of an enrolled user,         performing a voice biometric process on the second audio signal         to attempt to identify whether the speech is the speech of the         enrolled user.

The ear biometric process may be used to power gate the voice biometric process. The ear biometric process will be different to the voice biometric process, thereby providing individual discriminative results. Preferably the outputs of the ear biometric process and the voice biometric process can be combined or fused to provide an output to identify a user. In such an embodiment, it will be understood that the ear biometric process may be performed in a device such as a headset or earphone, with the voice biometric process performed in the same device, or in a coupled host device, e.g. a mobile phone handset. Alternatively, the ear biometric process and the voice biometric process may be performed in the same host device, e.g. a mobile phone handset. It will be understood that the first acoustic signal may comprise an ultrasonic audio signal (for example in the region from 18 kHz-48 kHz) and/or an audible audio signal. An example of a system having both ear and voice biometric processes, and additionally where the outputs of such processes are fused, may be found in co-pending U.S. patent application Ser. No. 16/118,950, the contents of which are incorporated by reference herein.

Preferably, the voice biometric process is selected to be more discriminative than the ear biometric process. By more discriminative, this may include that the voice biometric process is more accurate, or requires more processing resources to provide a more accurate result.

There is further provided a system for user identification comprising:

-   -   a first device including a first processor, the first device         configured to receive a first acoustic signal representing an         acoustic response received proximate a user's ear, and further         configured to perform an ear biometric process on the first         acoustic signal to attempt to identify whether the acoustic         response is indicative of the ear of an enrolled user to provide         a first user verification output; and     -   a second device including a second processor, the second device         coupled with the first device, the second device configured to         receive a second audio signal representing speech, and further         configured to perform a voice biometrics process based on the         second audio signal to provide a second user verification         output, the voice biometrics scoring performed responsive to the         receipt of a first user verification output from the first         device,     -   wherein the voice biometrics scoring is selected to be different         to the ear biometrics scoring.

Preferably, in any of the above-described methods, the method further comprises the steps of:

-   -   continuing to perform the first voice biometric process on the         audio signal after the initial determination, to provide a         further determination whether the speech is the speech of an         enrolled user; and     -   wherein the output of the second voice biometric process is         gated by the further determination of the first voice biometric         process.

By continuing to perform the first biometric process after the initial identification of a speaker, accordingly the second biometric process can be speculatively initiated before the first biometric process makes a further or final determination as to whether the speech is the speech of an enrolled user. By speculatively initiating the second process, accordingly there is a corresponding reduction in the overall system latency. By gating the output of the secondary process based on the further or final determination of the primary process, accordingly the accuracy of the entire system is preserved.

Preferably, in any of the above-described systems, the system is arranged such that:

-   -   the first device including the first processor is configured to         continue to perform the first voice biometric process on the         audio signal after the initial determination, to provide a         further determination whether the speech is the speech of an         enrolled user; and     -   wherein second device including the second processor is         configured such that the output of the second voice biometric         process is gated by the further determination of the first voice         biometric process.

BRIEF DESCRIPTION OF DRAWINGS

For a better understanding of the present invention, and to show how it may be put into effect, reference will now be made to the accompanying drawings, in which:

FIG. 1 illustrates an example smartphone;

FIG. 2 is an example schematic diagram, illustrating the form of the smartphone;

FIG. 3 is an example flow chart illustrating a method of analysing an audio signal;

FIG. 4 is an example block diagram illustrating a system for analysing an audio signal;

FIG. 5 is an example block diagram illustrating an alternative system for analysing an audio signal;

FIG. 6 is an example block diagram illustrating an alternative system for analysing an audio signal;

FIG. 7 illustrates an example use of the method of FIG. 3;

FIG. 8 illustrates a second example use of the method of FIG. 3;

FIG. 9 is an example block diagram illustrating a further system for analysing an audio signal;

FIG. 10 is an example block diagram illustrating a further system for analysing an audio signal;

FIG. 11 is an example block diagram illustrating a further system for analysing an audio signal;

FIG. 12 is an example block diagram illustrating a preferred implementation of the invention;

FIG. 13 is an example block diagram illustrating an embodiment of a first portion of the system of FIG. 12;

FIG. 14 is an example block diagram illustrating an embodiment of a second portion of the system of FIG. 12;

FIG. 15 is an example block diagram illustrating an embodiment of a third portion of the system of FIG. 12;

FIG. 16 is an example flow chart illustrating an embodiment of a method implemented by the system of FIG. 12;

FIG. 17 is an example plot of the system outputs for a sequential speaker verification system and for a speculative-initiation speaker verification system;

FIG. 18 illustrates an embodiment of a system in accordance with another embodiment;

FIG. 19 illustrates an embodiment of a system in accordance with another embodiment;

FIG. 20 is a block diagram, illustrating a system in accordance with another embodiment; and

FIG. 21 is a block diagram, illustrating a system in accordance with another embodiment.

DETAILED DESCRIPTION OF EMBODIMENTS

The description below sets forth example embodiments according to this disclosure. Further example embodiments and implementations will be apparent to those having ordinary skill in the art. Further, those having ordinary skill in the art will recognize that various equivalent techniques may be applied in lieu of, or in conjunction with, the embodiments discussed below, and all such equivalents should be deemed as being encompassed by the present disclosure.

The methods described herein may be implemented in a wide range of devices and systems. However, for ease of explanation of one embodiment, an illustrative example will be described, in which the implementation occurs in a smartphone.

FIG. 1 illustrates one example of a device in which the system may be embodied, namely a smartphone 10, having a microphone 12 for detecting ambient sounds. In normal use, the microphone is of course used for detecting the speech of a user who is holding the smartphone 10 close to their face.

FIG. 2 is a schematic diagram, illustrating the form of the smartphone 10.

Specifically, FIG. 2 shows various interconnected components of the smartphone 10. It will be appreciated that the smartphone 10 will in practice contain many other components, but the following description is sufficient for an understanding of embodiments of the present disclosure.

Thus, FIG. 2 shows the microphone 12 mentioned above. In certain embodiments, the smartphone 10 is provided with multiple microphones 12, 12 a, 12 b, etc.

FIG. 2 also shows a memory 14, which may in practice be provided as a single component or as multiple components. The memory 14 is provided for storing data and program instructions.

FIG. 2 also shows a processor 16, which again may in practice be provided as a single component or as multiple components. For example, one component of the processor 16 may be an applications processor of the smartphone 10.

FIG. 2 also shows a transceiver 18, which is provided for allowing the smartphone 10 to communicate with external networks. For example, the transceiver 18 may include circuitry for establishing an internet connection either over a WiFi local area network or over a cellular network.

FIG. 2 also shows audio processing circuitry 20, for performing operations on the audio signals detected by the microphone 12 as required. For example, the audio processing circuitry 20 may filter the audio signals or perform other signal processing operations.

In this embodiment, the smartphone 10 is provided with voice biometric functionality, and with control functionality. Thus, the smartphone 10 is able to perform various functions in response to spoken commands from an enrolled user. The biometric functionality is able to distinguish between spoken commands from the enrolled user, and the same commands when spoken by a different person. Thus, certain embodiments of the present disclosure relate to operation of a smartphone or another portable electronic device with some sort of voice operability, for example a tablet or laptop computer, a games console, a home control system, a home entertainment system, an in-vehicle entertainment system, a domestic appliance, or the like, in which the voice biometric functionality is performed in the device that is intended to carry out the spoken command. Certain other embodiments relate to systems in which the voice biometric functionality is performed on a smartphone or other device, which then transmits the commands to a separate device if the voice biometric functionality is able to confirm that the speaker was the enrolled user.

In some embodiments, while voice biometric functionality is performed on the smartphone 10 or other device that is located close to the user, the spoken commands are transmitted using the transceiver 18 to a remote speech recognition system, which determines the meaning of the spoken commands. For example, the speech recognition system may be located on one or more remote server in a cloud computing environment. Signals based on the meaning of the spoken commands are then returned to the smartphone 10 or other local device.

In other embodiments, a first part of the voice biometric functionality is performed on the smartphone 10 or other device that is located close to the user. Then, as described in more detail below, a signal may be transmitted using the transceiver 18 to a remote system, which performs a second part of the voice biometric functionality.

For example, the speech recognition system may be located on one or more remote server in a cloud computing environment. Signals based on the meaning of the spoken commands are then returned to the smartphone 10 or other local device.

Methods described herein proceed from the recognition that different parts of a user's speech have different properties.

Specifically, it is known that speech can be divided into voiced sounds and unvoiced or voiceless sounds. A voiced sound is one in which the vocal cords of the speaker vibrate, and a voiceless sound is one in which they do not.

It is now recognised that the voiced and unvoiced sounds have different frequency properties, and that these different frequency properties can be used to obtain useful information about the speech signal.

FIG. 3 is a flow chart, illustrating a method of analysing an audio signal, and FIGS. 4 and 5 are block diagrams illustrating functional blocks in the analysis system.

Specifically, in step 60 in the method of FIG. 3, an audio signal, which is expected to contain speech, is generated by a microphone 12 of the system shown in FIGS. 4 and 5, in response to the detected sound. It will be understood that the microphone 12 may be provided by any suitable audio transceiver capable of providing an audio signal in response to detected sound. For example, this may comprise a loudspeaker configured to operate as a microphone, a surface audio transceiver configured to receive sound, etc.

The audio signal may for example be expected to contain the speech of a specific speaker, who has previously enrolled in the speaker recognition system. In that case, the aim of the method may be to determine whether the person speaking is indeed the enrolled speaker, in order to determine whether any commands that are spoken by that person should be acted upon.

The signal generated by the microphone 12 is passed to a pre-processing block 80. Typically, the signal received from the microphone 12 is an analog signal, and the pre-processing block 80 includes an analog-digital converter, for converting the signal into a digital form. Also in the pre-processing block 80, the received signal may be divided into frames, which may for example have lengths in the range of 10-100 ms, and then passed to a voice activity detection block. Frames that are considered to contain speech are then output from the pre-processing block 80. In other embodiments, different acoustic classes of speech are considered. In that case, for example, frames that are considered to contain voiced speech are output from the pre-processing block 80.

In some cases, the speech processing system is a trigger-dependent system. In such cases, it is determined whether the detected speech contains a predetermined trigger phrase (such as “Hello phone”, or the like) that the user must speak in order to wake the system out of a low-power mode. The frames that are considered to contain voiced speech are then output from the pre-processing block 80 only when that trigger phrase has been detected. Thus, in this case, there is a voice activity detection step; if voice activity is detected, a voice keyword detection (trigger phrase detection) process is initiated; and the audio signal is output from the pre-processing block 80 only if voice activity is detected and if the keyword (trigger phrase) is detected.

In other cases, the speech processing system does not rely on the use of a trigger phrase. In such cases, all frames that are considered to contain voiced speech are output from the pre-processing block 80.

The signal output from the pre-processing block 80 is passed to a first voice biometric block (Vbio1) 82 and, in step 62 of the process shown in FIG. 3, a first voice biometric process is performed on the audio signal. As is conventional for a voice biometric process, this attempts to identify, in step 64 of the process shown in FIG. 3, whether the speech is the speech of an enrolled speaker.

If the first voice biometric process performed in the first voice biometric block 82 determines that the speech is not the speech of the enrolled speaker, the process passes to step 66, and ends. Any speech thereafter may be disregarded, until such time as there is evidence that a different person has started speaking.

The signal output from the pre-processing block 80 is also passed to a buffer 83, the output of which is connected to a second voice biometric block (Vbio2) 84. If, in step 64 of the process shown in FIG. 3, the first voice biometric process has made a provisional or initial determination that the speech might be the speech of the enrolled speaker, the second voice biometric block 84 is activated.

Then, in step 68 of the process shown in FIG. 3, a second voice biometric process is performed on the audio signal that was stored in the buffer 83. Again, this second biometric process attempts to identify whether the speech is the speech of an enrolled speaker.

The second voice biometric process performed in step 68 is selected to be more discriminative than the first voice biometric process performed in step 62.

For example, the term “more discriminative” may mean that the second voice biometric process is configured to have a lower False Acceptance Rate (FAR), a lower False Rejection Rate (FRR), or a lower Equal Error Rate (EER) than the first voice biometric process.

In some embodiments, the first voice biometric process performed in the first voice biometric block 82 is configured to have a relatively high False Acceptance Rate (FAR), and a relatively low False Rejection Rate (FRR), while the second voice biometric process performed in the second voice biometric block 84 is configured to have a relatively low FAR. For example, the first voice biometric process performed in the first voice biometric block 82 may be configured to have a FAR of greater than 5%, for example 8-12%, and specifically 10%; and may be configured to have a FRR of less than 3%, for example 0.5-2%, and specifically 1%. For example, the second voice biometric process performed in the second voice biometric block 84 may be configured to have a FAR of less than 0.1%, for example 0.005-0.05%, and specifically 0.01% ( 1/10000); and may be configured to have a FRR of greater than 3%, for example 3-8%, and specifically 5%.

Thus, the first voice biometric process may be selected as a relatively low power, and/or less computationally expensive, process, compared to the second voice biometric process. This means that the first voice biometric process may be running on all detected speech, while the higher power and/or more computationally expensive second voice biometric process may be maintained in a low power or inactive state, and activated only when the first process already suggests that there is a high probability that the speech is the speech of the enrolled speaker. In some other embodiments, where the first voice biometric process is a suitably low power process, it may be used without using a voice activity detection block in the pre-processing block 80. In those embodiments, all frames (or all frames that are considered to contain a noticeable signal level) are output from the pre-processing block 80. This is applicable when the first voice biometric process is such that it is considered more preferable to run the first voice biometric process on the entire audio signal than to run a dedicated voice activity detector on the entire audio signal and then run the first voice biometric process on the frames of the audio signal that contain speech.

In some embodiments, the second voice biometric block 84 is activated when the first voice biometric process has completed, and has made a provisional or initial determination based on the whole of a speech segment that the speech might be the speech of the enrolled speaker.

In other embodiments, in order to reduce the latency of the system, the second voice biometric block 84 is activated before the first voice biometric process has completed. In those embodiments, the provisional or initial determination may be based on an initial part of a speech segment or alternatively may be based on a partial calculation relating to the whole of a speech segment. Further, in such cases, the second voice biometric block 84 is deactivated if the final determination by the first voice biometric process is that there is a relatively low probability the speech is the speech of the enrolled speaker.

For example, the first voice biometric process may be a voice biometric process selected from a group comprising: a process based on analysing a long-term spectrum of the speech, as described in UK Patent Application No. 1719734.4; a method using a simple Gaussian Mixture Model (GMM); a method using Mel Frequency Cepstral Coefficients (MFCC); a method using Principle Component Analysis (PCA); a Joint Factor Analysis process; a Tied Mixture of Factor Analyzers process; a method using machine learning techniques such as Deep Neural Nets (DNNs) or Convolutional Neural Nets (CNNs); and a method using a Support Vector Machine (SVM), amongst others.

For example, the second voice biometric process may be a voice biometric process selected from a group comprising: a neural net (NN) process; a Joint Factor Analysis (JFA) process; a Tied Mixture of Factor Analyzers (TMFA); a method using machine learning techniques such as Deep Neural Nets (DNNs) or Convolutional Neural Nets (CNNs); and an i-vector process or an x-vector process, amongst others.

In some other embodiments, the first and second voice biometric processes might be the same type of process, but with the second voice biometric process configured to be more discriminative than the first. For example, the first and second voice biometric processes might both use Gaussian Mixture Models, with the second process using more mixtures. More specifically, the first voice biometric process might be a 16 mixture Gaussian Mixture Model, while the second voice biometric process might be a 4096 mixture Gaussian Mixture Model. As another example, the first and second voice biometric processes might both use Deep Neural Nets, with the second process using more weights. In both of these cases, the second more discriminative process might be trained with more data.

In some examples, the first voice biometric process may be configured as an analog processing biometric system, with the second voice biometric process configured as a digital processing biometric system.

FIG. 6 is a block diagram illustrating functional blocks in the analysis system in that case.

As in FIGS. 4 and 5, an audio signal, which is expected to contain speech, is generated by a microphone 12 in response to the detected sound.

As before, the audio signal may for example be expected to contain the speech of a specific speaker, who has previously enrolled in the speaker recognition system. In that case, the aim of the method may be to determine whether the person speaking is indeed the enrolled speaker, in order to determine whether any commands that are spoken by that person should be acted upon.

The signal generated by the microphone 12 is passed to a first voice biometric block, which in this embodiment is an analog processing circuit (Vbio1A) 120, that is a computing circuit constructed using resistors, inductors, op amps, etc. This performs a first voice biometric process on the audio signal. As is conventional for a voice biometric process, this attempts to identify, as in step 64 of the process shown in FIG. 3, whether the speech is the speech of an enrolled speaker.

If the first voice biometric process performed in the first voice biometric block 120 determines that the speech is not the speech of the enrolled speaker, the process ends. Any speech thereafter may be disregarded, until such time as there is evidence that a different person has started speaking.

Separately, the signal generated by the microphone 12 is passed to a pre-processing block, which includes at least an analog-digital converter (ADC) 122, for converting the signal into a digital form. The pre-processing block may also divide the received signal into frames, which may for example have lengths in the range of 10-100 ms.

The signal output from the pre-processing block including the analog-digital converter 122 is passed to a buffer 124, the output of which is connected to a second voice biometric block (Vbio2) 84. If the first voice biometric process makes a provisional or initial determination that the speech might be the speech of the enrolled speaker, the second voice biometric block 84 is activated, and the relevant part of the data stored in the buffer 124 is output to the second voice biometric block 84.

Then, a second voice biometric process is performed on the relevant part of the audio signal that was stored in the buffer 124. Again, this second biometric process attempts to identify whether the speech is the speech of an enrolled speaker.

The second voice biometric process is selected to be more discriminative than the first voice biometric process.

For example, the term “more discriminative” may mean that the second voice biometric process is configured to have a lower False Acceptance Rate (FAR), a lower False Rejection Rate (FRR), or a lower Equal Error Rate (EER) than the first voice biometric process.

The analog first voice biometric process will typically use analog computing circuitry, and will therefore typically be a relatively low power process, compared to the second voice biometric process. This means that the first voice biometric process can be running on all signals that are considered to contain a noticeable signal level, without the need for a separate voice activity detector.

As mentioned above, in some embodiments, the second voice biometric block 84 is activated when the first voice biometric process has completed, and has made a provisional or initial determination based on the whole of a speech segment that the speech might be the speech of the enrolled speaker. In other embodiments, in order to reduce the latency of the system, the second voice biometric block 84 is activated before the first voice biometric process has completed. In those embodiments, the provisional or initial determination can be based on an initial part of a speech segment or alternatively can be based on a partial calculation relating to the whole of a speech segment. Further, in such cases, the second voice biometric block 84 is deactivated if the final determination by the first voice biometric process is that there is a relatively low probability the speech is the speech of the enrolled speaker.

For example, the second voice biometric process may be a voice biometric process selected from a group comprising: a neural net (NN) process; a Joint Factor Analysis (JFA) process; a Tied Mixture of Factor Analyzers (TMFA); a method using machine learning techniques such as Deep Neural Nets (DNNs) or Convolutional Neural Nets (CNNs); and an i-vector process or an x-vector process, amongst others.

As described above with reference to FIGS. 4, 5 and 6, the first voice biometric process makes an initial attempt to identify whether the speech is the speech of the enrolled speaker. If that process determines that there is a sufficiently high probability that the speech is the speech of the enrolled speaker, the second voice biometric process makes an attempt to identify whether the speech is the speech of the enrolled speaker.

As shown in FIG. 4, one possibility is that the output from the second voice biometric process 84 is passed to a decision block 86, which decides whether to accept that the speech is the speech of the enrolled speaker. For example, the second voice biometric process 84 may generate a likelihood score, and the decision block 86 may compare this with a threshold value, with that threshold value potentially being set based on a required security level. Thus, in a low security application, the threshold value may be set to be low, ensuring a low False Rejection Rate but with an increased False Acceptance Rate. In a higher security application, the threshold value may be set to be high, ensuring a low False Acceptance Rate, but with an increased False Rejection Rate. As noted above, however, the second voice biometric process 84 may be a relatively computationally expensive process, so that in any event the combination of the False Acceptance Rate and the False Rejection Rate (or the Equal Error Rate) is better than can be obtained from the first voice biometric process.

As shown in FIGS. 5 and 6, an alternative possibility is that the outputs from the first voice biometric process 82, 120 and from the second voice biometric process 84 are both passed to a fusion and decision block 90. In the case of the embodiment shown in FIG. 6, depending on the form of the result signal that is output from the analog computing process 120, this signal may be passed to an analog-digital converter (ADC) 126 to put the signal into a digital form before passing it to the fusion and decision block 90. The fusion and decision block 90 combines the scores from the two processes and decides whether to accept that the speech is the speech of the enrolled speaker.

For example, with a score S₁ generated by the first voice biometric process 82 and a score S₂ generated by the second voice biometric process, the combined score S_(T) may be a weighted sum of these two scores, i.e.: S _(T) =αS ₁+(1−α)S ₂.

Alternatively, the fusion and decision block 90 may combine the decisions from the two processes and decide whether to accept that the speech is the speech of the enrolled speaker.

For example, with a score S₁ generated by the first voice biometric process 82 and a score S₂ generated by the second voice biometric process, it is determined whether S₁ exceeds a first threshold th1 that is relevant to the first voice biometric process 82 and whether S₂ exceeds a second threshold th2 that is relevant to the second voice biometric process. The fusion and decision block 90 may then decide to accept that the speech is the speech of the enrolled speaker if both of the scores exceeds the respective threshold.

Combining the results of the two biometric processes means that the decision can be based on more information, and so it is possible to achieve a lower Equal Error Rate than could be achieved using either process separately.

As noted above, the first and second voice biometric processes may both be performed in a device such as the smartphone 10. However, in other examples, the first and second voice biometric processes may be performed in separate devices.

For example, as shown in FIG. 7, the first voice biometric process may be performed in a device such as the smartphone 10. Then, the received audio signal may be transmitted over a network 100 to a remote device (for example a cloud-based biometric processor 102) using the transceiver 18 only in the event that the first voice biometric process has made a provisional or initial determination that the speech might be the speech of the enrolled speaker. The second voice biometric process may then be performed in the remote device 102.

As another example, as shown in FIG. 8, an accessory such as a headset 110 or other listening device such as a pair of earbuds, may be in use in conjunction with a device such as the smartphone 10. In that case, the first voice biometric process may be performed in the accessory device such as the headset 110. Then, the received audio signal may be transmitted to the smartphone 10 only in the event that the first voice biometric process has made a provisional or initial determination that the speech might be the speech of the enrolled speaker. The second voice biometric process may then be performed in the smartphone 10. Thus, wireless transmission circuitry in the accessory device may be activated, to transmit data to the host device, only when it is determined in the accessory device that the speech might be that of the enrolled speaker. The accessory device may for example comprise a wearable device such as a headset device, a smart glasses device, or a smart watch device. The host device may comprise a device such as a mobile phone or tablet computer.

In further embodiments, the first voice biometric process can be performed in a first device, which may be a wearable device, while the second voice biometric process can be performed in a second device, which may be a different wearable device. For example, if the first voice biometric process is performed in a first device such as a headset, and the second voice biometric process is performed in a second device such as a watch, where the second device has greater onboard battery power and/or greater onboard computing power, the second device is effectively acting as the host device.

In some situations, the first voice biometric process might itself be divided between two accessory devices. For example, a first component of the first voice biometric process can be performed in a first accessory device, which may be a wearable device such as a headset, while a second component of the first voice biometric process can be performed in a second accessory device, which may be a different wearable device. Again, this may take advantage of different amounts of battery power and/or computing power in the two devices. The results of the first and second components of the first voice biometric process can be fused or combined, to produce a result, with a received audio signal being transmitted to the smartphone 10 only in the event that the combined result of the first voice biometric process leads to a provisional or initial determination that the speech might be the speech of the enrolled speaker.

In addition, even when the first and second voice biometric processes are both performed in a device such as the smartphone 10, they may be performed in separate integrated circuits.

FIG. 9 shows one example of separated integrated circuits. FIG. 9 corresponds generally to FIG. 4, but shows that the pre-processing block 80, the first voice biometric process 82, and the buffer 83 are provided on a first integrated circuit 140, for example a dedicated low-power biometrics chip. This chip may operate in an “always on” manner, such that all received signals are passed to the first biometric process 82. In that case, the first biometric process 82 may act as a voice activity detector. Alternatively, the first biometric process 82 may be activated in response to a voice activity detector (either within the pre-processing block 80 or separate from the first integrated circuit 140) determining that the signal contains speech. In some embodiments, the first integrated circuit may be a codec, or may be part of a digital microphone device or chip, or a smart codec or speaker amplifier chip.

In addition, the first integrated circuit 140 may contain an anti-spoofing block 142, for performing one or more tests on the received signal to determine whether the received signal has properties that may indicate that it results not from the user speaking into the device, but from a replay attack where a recording of the enrolled user's voice is used to try and gain illicit access to the system. If the output of the anti-spoofing block 142 indicates that the received signal may result from a replay attack, then this output may be used to prevent the second voice biometric process being activated, or may be used to gate the output from the first integrated circuit 140. Alternatively, the output of the anti-spoofing block 142 may be passed to the decision block 86 for its use in making its decision on whether to act on the spoken input. It will be understood that the anti-spoofing block 142 may be arranged to perform a plurality of separate anti-spoofing processes, as described below, the outputs of which may be fused together into a single anti-spoofing output.

Meanwhile, the second voice biometric process 84 and the decision block 86 are provided on a second integrated circuit 144, for example a high-power, high-performance chip, such as the applications processor or other processor of the smartphone, or a dedicated biometrics processor device or chip.

FIG. 10 shows another example of separated integrated circuits. FIG. 10 corresponds generally to FIG. 5, but shows that the pre-processing block 80, the first voice biometric process 82, and the buffer 83 are provided on a first integrated circuit 150, for example a dedicated low-power biometrics chip. This chip may operate in an “always on” manner, such that all received signals are passed to the first biometric process 82. In that case, the first biometric process 82 may act as a voice activity detector. Alternatively, the first biometric process 82 may be activated in response to a voice activity detector (either within the pre-processing block 80 or separate from the first integrated circuit 150) determining that the signal contains speech.

In addition, the first integrated circuit 150 may contain an anti-spoofing block 142, for performing one or more tests on the received signal to determine whether the received signal has properties that may indicate that it results not from the user speaking into the device, but from a replay attack where a recording of the enrolled user's voice is used to try and gain illicit access to the system. If the output of the anti-spoofing block 142 indicates that the received signal may result from a replay attack, then this output may be used to prevent the second voice biometric process being activated, or may be passed to the fusion and decision block 90 for its use in making its decision on whether to act on the spoken input.

Meanwhile, the second voice biometric process 84 and the fusion and decision block 90 are provided on a second integrated circuit 152, for example a high-power, high-performance chip, such as the applications processor of the smartphone.

While in the described embodiments, the pre-processing block 80 is used to output a framed or sampled digital signal for further processing, it will be understood that the pre-processing block 80 may additionally or alternatively be configured to output a continuous digital signal, and/or an analog signal from the microphone 12. It will be understood that the pre-processing block 80 may be configured to provide different output signals to different downstream processing modules. For example, the pre-processing block 80 may provide the first voice biometric process 82 with a framed digital signal, and in parallel provide the anti-spoofing block 142 with a streamed continuous analog or digital signal for anti-spoof processing.

FIG. 11 shows another example of this division of the functionality. FIG. 11 corresponds generally to FIG. 6, but shows that the analog first voice biometric process 120, the analog-digital converters (ADCs) 122, 126, and the buffer 124 are provided on a first integrated circuit 160, for example a dedicated low-power biometrics chip. This chip may operate in an “always on” manner, such that all received signals are passed to the analog first biometric process 120. In that case, the first biometric process 120 may act as a voice activity detector.

In addition, the first integrated circuit 160 may contain an anti-spoofing block 142, for performing one or more tests on the received signal to determine whether the received signal has properties that may indicate that it results not from the user speaking into the device, but from a replay attack where a recording of the enrolled user's voice is used to try and gain illicit access to the system. If the output of the anti-spoofing block 142 indicates that the received signal may result from a replay attack, then this output may be used to prevent the second voice biometric process being activated, or may be passed to the fusion and decision block 90 for its use in making its decision on whether to act on the spoken input.

Meanwhile, the second voice biometric process 84 and the fusion and decision block 90 are provided on a second integrated circuit 162, for example a high-power, high-performance chip, such as the applications processor of the smartphone.

It was mentioned above in connection with FIGS. 9 and 10 that the first biometric process 82 may act as a voice activity detector. Similarly, it was mentioned in connection with FIG. 11 that the first biometric process 120 may act as a voice activity detector. A voice biometric may be used as a voice activity detector because there is a similarity between the processes. A voice biometric process typically compares features extracted from the received speech against a voiceprint that is made of features extracted from the enrolled user's speech. If the similarity score exceeds a particular threshold, meaning that the degree of similarity is high enough, then the received speech is considered to be that of the enrolled user. If it is determined by the first voice biometric process that the speech is the speech of an enrolled user, this determination may be used as an indication that the received audio signal comprises speech.

The similarity score may also be compared with a lower threshold. If the similarity score exceeds that lower threshold, then this condition will typically be insufficient to say that the received signal contains the speech of the enrolled user, but it will be possible to say that the received signal does contain speech.

Similarly, it may be possible to determine that the received signal does contain speech, before it is possible to determine with any certainty that the received signal contains the speech of the enrolled user. For example, in the case where the first voice biometric process is based on analysing a long-term spectrum of the speech, it may be necessary to look at, say, 100 frames of the signal in order to obtain a statistically robust spectrum, that may be used to determine whether the specific features of that spectrum are characteristic of the particular enrolled speaker. However, it may already be possible after a much smaller number of samples, for example 10-20 frames, to determine that the spectrum is that of human speech rather than of a noise source, a mechanical sound, or the like.

Thus, in this case, while the first voice biometric process is being performed, an intermediate output may be generated and used as a voice activity detection signal. This intermediate output may be supplied to any other processing block in the system, for example to control whether a speech recognition process should be enabled.

In a further aspect of the invention, it will be understood that the first integrated circuits 140, 150, 160 may be provided with information relating to the specific microphone 12 or audio transceiver to which the circuit is coupled to receive the audio signal. Such information may comprise characteristic information about the device performance e.g. nonlinearities in device operation. Such information may comprise pre-loaded data which may be programmed into the first integrated circuit 140, 150, 160 during manufacture, i.e. when it is known what specific microphone 12 or other audio transceiver is being used. Additionally or alternatively, the first integrated circuit 140, 150, 160 may be provided with a monitoring module which is configured to monitor the operation of the microphone 12 to track any operational drift or variations in the performance of the component, e.g. due to temperature changes, device wear-and-tear, etc. Such monitoring may be accomplished through the use of suitable voltage or current monitoring systems coupled to the microphone 12.

Such characteristic information may be used as an input to the respective processing modules of the circuits 140, 150, 160, such that the device-specific information may be taken into account in the processing of data from the microphone 12. For example, the first biometric process 82 or the anti-spoofing module 142 may take account of characteristic nonlinearities present in the microphone 12 to ensure that the respective outputs of such modules 82 or 142 are corrected for any device-specific irregularities.

In any of FIGS. 9, 10 and 11, the first integrated circuits 140, 150, 160 may be provided separately from the respective second integrated circuits 144, 152, 162. That is, any one of the first integrated circuits 140, 150, 160 may be supplied as a stand-alone device, which may then be connected to any other device providing any required functionality. Similarly, any one of the second integrated circuits 144, 152, 162 may be supplied as a stand-alone device, which may then be connected to receive inputs from any other device providing the required signals.

Data Integrity

In various examples described above, a first biometric process is performed on some data representing speech, and a second biometric process may also be performed. The intention is that, if the second biometric process is performed, it should be performed on the same data as that on which the first biometric process is performed. In order to ensure that this is the case, a data integrity process may also be performed.

In general terms, digital data representing speech is received at a first processor for performing a first voice biometric process. In FIGS. 4 and 5, and in FIGS. 9 and 10, this first processor is the first voice biometric block (Vbio1) 82. The first voice biometric block 82 performs a biometric process on the data to attempt to identify whether the speech is the speech of an enrolled speaker. In addition, the first voice biometric block 82 generates a Message Authentication Code or Message Authentication Certificate (MAC). In some embodiments, the first voice biometric block 82 may generate the MAC only if the first voice biometric process makes an initial determination that the speech is the speech of an enrolled user. If the first voice biometric process makes an initial determination that the speech is the speech of an enrolled user, the first voice biometric block 82 may send a signal to a second processor to activate it. This activation signal may include the generated MAC.

The digital data representing speech may also be received at a second processor for performing a second voice biometric process. In FIGS. 4 and 5, and in FIGS. 9 and 10, this second processor is the second voice biometric block (Vbio2) 84. If the second voice biometric block 84 is activated, it performs a second biometric process on the data to attempt to identify whether the speech is the speech of an enrolled speaker. The second voice biometric block 84 may be activated by an activation signal received from the first voice biometric block 82, and this activation signal may also include the Message Authentication Certificate (MAC) generated by the first voice biometric block 82.

In this case, the second voice biometric block 84 also generates a Message Authentication Certificate (MAC). The second voice biometric block 84 then compares the MAC that it has generated with the MAC that it received from the first voice biometric block 82. Since each MAC is calculated as a function of the received data, and since the first voice biometric block 82 and the second voice biometric block 84 should receive the same data, the two MACs may be compared, and it is expected that they should be found to be the same. If they are found to be different, then this may indicate that the system has been subject to an attack by injecting invalid data, and the authentication process may be terminated.

One example of how a suitable MAC may be generated and verified by the first voice biometric block 82 and the second voice biometric block 84 is to pass the received digital data to a hash module which performs a hash of the data in appropriate frames. The hash module may determine a hash value, H, for example according to the known SHA-256 algorithm as will be understood by skilled in the art, although other hash functions may also be appropriate.

In the first voice biometric block 82, the hash value may be digitally signed using a signing module. The signing module may apply a known cryptographic signing protocol, e.g. based on the RSA algorithm or Elliptic-curve-cryptography (ECC) using a private key K_(Private) that is known to the first voice biometric block 82.

In one example, a 256 bit hash value, H, is calculated by the hash module, and the signing module pads this value to a higher bit hash, for instance a 2048 bit padded hash, P, as would be understood by one skilled in the art. Using the private key, K_(Private) (d,N) the Message Authentication Certificate (MAC), e.g. a 2048-bit MAC, is generated using modular exponentiation, e.g. the MAC is generated by raising P to power of d modulo N: MAC=P{circumflex over ( )}d mod N

In one example, the exponent d is a 32-bit word and the modulus N is a 2048-bit word.

The MAC is then transmitted to the second voice biometric block 84 as required. The MAC may be encoded with the activation signal, or may simply be added to the activation signal to be transmitted in a predefined way, e.g. as the first or last 2048 bits defined with respect to some frame boundary.

When the second voice biometric block (Vbio2) 84 receives the MAC, it can extract the hash that was used to generate the MAC. The MAC may be passed to a cryptographic module where, using the public key K_(Public) (e,N) and the corresponding RSA or ECC algorithm, the value of the signed padded hash value P_(S) may be extracted by raising the MAC to the power of e modulo N. The full domain hash may thus be calculated as: P _(S)=MAC{circumflex over ( )}e mod N

The second voice biometric block (Vbio2) 84 also includes a hash module that performs the same hash and padding process using the data that it has received from the buffer 83, as was applied by the first voice biometric block (Vbio1) 82 on its received data. This process determines a padded hash value P_(R) for the received data. The two padded hash values P_(S) and P_(R) may then be compared, and a data validity signal generated indicating that the data is valid, if the two padded hash values are the same, or that the data is invalid, if the values differ.

The above description of the algorithms used and the various bit lengths is by way of example only and different algorithms and/or bit lengths may be used depending on the application. In some instances, padding of the hash value may not be required. It will be understood that the discussion above has focused on asymmetric key based signing, i.e. the use of public and private keys. However, the signing could additionally or alternatively involve some symmetric signing, e.g. based on a mutual shared secret or the like.

In a further aspect, the system may be configured to perform speculative automatic speech recognition (ASR), wherein an ASR module is engaged to recognise speech e.g. voice commands, in the received audio. To ensure that the ASR module is operating on the same speech as has been verified by a biometrics module, a data integrity checking system may be employed. An example of such a system is as described in co-pending U.S. patent application Ser. No. 16/115,654, which is incorporated by reference herein. It will be understood that such a system configuration may be also utilised for a speculative secondary biometric process, as described below, wherein the ASR module may be replaced by the secondary biometric process.

Further Embodiments

An implementation of a speaker verification system and method is now described in relation to FIGS. 12-16.

In FIG. 12, a speaker verification system 200 is shown, which receives audio comprising speech from an input 202 such as a microphone or any other suitable interface or audio transceiver for receiving audio signals. The system 200 comprises a speaker validation module 204, and an audio validation module 206. The speaker validation module 204 performs an initial speaker validation process on the received audio from the input 202, and provides outputs in the form of a speaker ID score representing an initial likelihood that the received speech is from a particular speaker and a sound classification representing the likelihood that the received speech is a particular acoustic class.

The audio validation module 206 is configured to determine if the received audio is valid or invalid. In particular, the audio validation module 206 is configured to detect if the received audio is all from a single speaker, and/or to determine if the received audio is genuine audio, or is the product of a spoof or replay attack, wherein a hacker or other malicious actor is trying to deceive the speaker verification system 200. The speaker validation module 204 is coupled with the audio validation module 206, such that the audio validation module 206 makes the determination on whether the received audio is valid or invalid based at least in part on the output of the speaker validation module 204. In particular, the output of the audio validation module 206 is based at least in part on the sound classification representing the likelihood that the received speech is a particular acoustic class, which is output by the speaker validation module 204. By using the sound classification output from the speaker verification process in the audio validation process, accordingly the resources required for such an audio validation process may be minimised, and associated latency reduced.

The output of the audio validation module 206 is used in a decision gating module 208, such that the output of the speaker verification system 200 is only allowed (a) when the speaker validation module 204 has made an initial determination that the received speech is the speech of an enrolled user, and (b) when the audio validation module 206 has determined that the received audio is valid. Accordingly, the output of the audio validation module 206 is used to gate the output of the speaker validation module 204 at the gating module 208. Gating the speaker verification output by using an audio validity check to confirm that the received audio is valid ensures that the speaker verification result is only used for audio which is not from a replay attack or a spoof attack, and additionally or alternatively, ensures that the received audio used in the speaker verification is from the same speaker, and is not from a combative or tail-gating attack.

A combative speech attack occurs when the speaker changes between the initial voice trigger and the subsequent command (e.g. Speaker 1: “Hello Computer”, Speaker 2: “Order me a beer”). A tail-gating speech attack occurs when a second speaker appends an additional command onto the end of a valid command from a first speaker (e.g. Speaker 1: “Hello Computer, order me a pizza”, Speaker 2: “And a beer”).

The output of the decision gating module 208 may be used as the input to a secondary biometrics system, e.g. to a second integrated circuit 144, 152, 162 as described in the embodiments above. In this regard, the output of the decision gating module 208 may be simply a trigger for a relatively more discriminative secondary biometrics scoring process, or the output of the decision gating module 208 may comprise the speaker ID score from the speaker validation module 204, which may be fused with a later biometrics module as described above.

The speaker verification system 200 may be provided with a trigger detection module 210, which is arranged to initialise at least a portion of the speaker verification system 200 on detection of a suitable trigger. Such a trigger may comprise a voice keyword detected in the received audio, e.g. a trigger phrase such as “Hello Computer” or similar. Additionally or alternatively, the trigger detection may receive inputs from other sources, e.g. system inputs such as button presses, proximity detection, optical sensors, etc. which may be indicative of user interaction with the speaker verification system 200. In the embodiment of FIG. 12, the trigger detection module 210 is coupled with the speaker validation module 204, such that at least a portion of the speaker validation module 204 is initialised in response to the detection of a suitable trigger, but it will be understood that the trigger detection module 210 may additionally or alternatively be coupled with the audio validation module 206 or the decision gating module 208, where at least a portion of such modules are initialised in response to the detection of a suitable trigger.

In an additional aspect, the speaker verification system 200 may be provided with an audio buffer 212 arranged to buffer the audio received from the input 202. Such a buffer 212 may be used as described in the above embodiments, wherein the buffered audio may be provided to a downstream biometrics module for further processing. The output of the buffer 212 from the system 200 may be controlled by the gating module 208, such that data is only sent for further processing when it is determined that the received audio is valid, and that the speaker validation module 204 has determined that the received audio comprises speech from an enrolled user. By outputting the buffered audio along with a valid speaker recognition output, accordingly further processing of the received audio may be performed, with an initial determination that the received audio is that of a particular speaker. Such additional processing may comprise speech recognition of the received audio for use in command processing, or the received audio may be processed using a more discriminative speaker recognition process, for example for relatively high security operations.

In some embodiments, an output of the audio validation module 206 may be used as an input to the speaker validation module 204, as described in more detail below.

FIG. 13 shows an example implementation of the speaker validation module 204, which is arranged to receive audio comprising speech from input 202. The module 204 comprises a feature extraction module 214 which is configured to perform a feature extraction operation on the received audio. The feature extract version of the audio is then passed to a classifier module 216, which is arranged to perform a classification of the received audio, to identify what type of sounds are present in the received audio. The classification may be performed using any suitable classification process, e.g. a Gaussian Mixture Model (GMM) process, or may utilise a machine learning process wherein a neural net has been trained to recognise sound classes. The classifier module 216 will output an appropriate sound classification indicative of the sounds present in the received audio, which may be used in subsequent speaker recognition scoring as described below. In addition, the sound classification is provided as an output 222 from the speaker validation module 204, which may be used as an input to the audio validation module 206, as described above.

It will be understood that the sound classification may be provided as an indication of the acoustic classes present in received audio, for example sound mixtures, phonemes, phones, senones, etc.

Thus, the sound classification provides information about the distribution of detected acoustic classes within the total received audio. This may also be called the mixture model. The sound classification that is generated by the classifier 216 provides information about the sounds that are present in the speech, but also provides information about the identity of the person speaking, because the most likely mixtures produced from the speech of a first person uttering a specific sound will differ from the most likely mixtures produced from the speech of a second person uttering the same sound. Thus, a change in the most likely mixtures can correspond to a speaker change. The mixture can also be used by scoring it against a mixture model obtained for a particular speaker.

The sound classification could be generated frame-by-frame or could be generated over a group of frames. For example, a particular group of frames might correspond to a phoneme, though the length of each phoneme in an utterance will depend on the articulation rate, and the classification identifies which most likely mixtures correspond to the phoneme.

Within the speaker validation module 204, the sound classification is passed to a scoring or distance module 218, which acts to score the received audio against a series of stored speaker models 220 representing different enrolled speakers, based on the determined sound classification. The scoring may comprise calculating a distance metric for the distance the speech of the received audio is from the speech of an enrolled speaker, a probability metric that the speech of the received audio is the speech of an enrolled speaker, or a log likelihood ratio that the speech of the received audio is that of an enrolled speaker. The scoring may be performed using any suitable measures, e.g. a Joint Factor Analysis (JFA) based approach; a speaker recognition process based on tracking of the fundamental frequency of a speaker, for example as described in U.S. patent application No. 62/728,421, which is incorporated by reference herein; a machine learning or deep neural net based process (ML-DNN); etc.

Once the scoring has been completed, the speaker validation module 204 is configured to output a speaker ID score, which represents the likelihood that the received speech is from a particular speaker. The speaker ID score is provided as an output 224, which may be used as an input to the audio validation module 206 as described above. Where there are multiple enrolled speakers, as mentioned above, and hence multiple stored speaker models 220, the scoring or distance module 218 may output separate scores representing the respective likelihoods that the received speech is from those enrolled speakers. The speaker ID score may be further used as output 204 a, which is used as an input to the decision gating module 208. It will be understood that the speaker validation module 206 may comprise any suitable speaker recognition system for example as described in “Fundamentals of Speaker Recognition”, Homayoon Beigi. ISBN: 978-0-387-77592-0.

In some embodiments, the speaker validation module 204 may be configured to perform a plurality of different speaker recognition processes in parallel, and to combine or fuse the outputs of the different processes to provide the speaker ID score. Preferably, the plurality of different processes are selected to have low cross-correlation between the approaches, which translates into a robust and accurate speaker ID output.

FIG. 14 shows an example implementation of the audio validation module 206, which is arranged to receive audio comprising speech from input 202. In addition, the audio validation module 206 receives as inputs the sound classification 222 and the speaker ID score 224 as calculated by the speaker validation module 204.

The audio validation module is arranged to determine whether or not the audio received at the input 202 is valid. Within the audio validation module 206, there is provided an anti-spoofing module 226 and a speaker change detection module 228.

The anti-spoofing module 226 is arranged to receive the sound classification 222 and the input audio 202, and to determine the probability of a replay attack or a presentation attack on the speaker verification system, for example through the use of replayed or synthesised audio to imitate a speaker.

An example of an anti-spoofing process using received audio and an indication of the acoustic classes present in speech may be found in co-pending U.S. patent application Ser. No. 16/050,593, which is incorporated by reference herein.

Additionally, the anti-spoofing process may comprise:

-   -   an ultrasonic-power-level-based anti-spoofing system, such as         those described in U.S. patent application Nos. 62/571,944,         62/572,016, Ser. No. 15/980,491, which are incorporated by         reference herein;     -   a magnetic-power-level-based anti-spoofing system, such as those         described in co-pending U.S. patent application Ser. Nos.         16/020,406, 16/018,795, which are incorporated by reference         herein;     -   a loudspeaker-detection-based anti-spoofing system, such as         those described in U.S. patent application Nos. 62/571,959,         62/585,721, 62/585,660, 62/571,978, Ser. No. 16/017,072, which         are incorporated by reference herein.

For cases where different anti-spoofing processes are performed, it will be understood that the outputs of such different anti-spoofing processes may be combined or fused to provide an anti-spoofing decision. In the case of combining or fusing the outputs, the output values of the different processes may be provided with different weights to account for such factors as the usage situations or environment, device characteristics, etc.

The speaker change detection module 228 is arranged to receive the input audio 202, the sound classification 222 and the speaker ID score 224, and to determine a change of speaker in the received audio based on some combination of the received inputs.

In one aspect, the speaker change detection module 228 is configured to implement a speaker change detection process based on a time-windowed biometric speaker ID score, such as that described in co-pending U.S. patent application Ser. No. 16/122,033, which is incorporated by reference herein.

Additionally or alternatively, the speaker change detection module 228 may be arranged to implement speaker change detection process based on:

-   -   monitoring for a change in the fundamental frequency, or F0, of         the received audio;     -   monitoring for a change in the distribution of the phonetic or         subphonetic acoustic classes of the received audio identified         from the sound classification;     -   monitoring for a change in the fundamental frequency of the         received audio for a particular acoustic class identified from         the sound classification;     -   accent tracking;     -   emotion tracking; or     -   any other suitable speaker change detection method, such as that         described in (Ajmera, Jitendra & Mccowan, lain & Bourlard,         Nerve. (2004). Robust Speaker Change Detection. Signal         Processing Letters, IEEE. 11. 649-651. 10.1109/LSP.2004.831666),         which is incorporated by reference herein.

By performing accurate speaker change detection (or SCD) on the received audio, the speaker verification system prevents exploitation by so-called combative or tail-gating attacks. In embodiments wherein multiple different SCD processes are performed, it will be understood that the outputs of such different SCD processes may be combined or fused to provide an SCD decision. In the case of combining or fusing the outputs, the output values of the different processes may be provided with different weights to account for such factors as the usage situations or environment, device characteristics, etc.

In some embodiments, and as shown in FIG. 12, the output of the audio validation module 206 may be used as an input to the speaker verification module 204. Such a configuration may be of use for embodiments where the speaker verification module 204 is operating in an always-on mode, to ensure that the speaker verification process is performed on correct portions of the received audio. For example, the output of the audio validation module 206 may be used to reset the operation of the speaker validation module 204.

For example, the output of the SCD module 228 may be used as an input to the speaker validation module 204, wherein the output of the SCD process module 228 sets a boundary on that portion of the received audio on which a speaker verification process should be performed. For example, if the SCD module 228 is configured to analyse speaker scores on an audio frame-by-frame basis to determine the point of speaker change, then the SCD output may define the total range of audio frames to process to determine the final speaker ID score, as it has been determined by the SCD module 228 that all of those frames are spoken by the same speaker. In some aspects, the output of the SCD module 228 may be used to reset the operation of the speaker validation module 204 on detection of a change in speaker in the received audio.

In a further example, in addition to identifying malicious attacks on the system, the anti-spoofing module 226 may also identify non-malicious environmental conditions that could affect accurate processing of the received audio. For example, a relatively high level of ultrasonics present in the received audio signal, e.g. from an ultrasonic motion sensor, may result in distortions or inaccurate outputs from the speaker validation module 204. Accordingly, the output from anti-spoofing module 226 may be used as an input to the speaker validation module 204 to set a boundary on portions of the received audio which are deemed to produce a safe and accurate speaker validation output. Most typically, this will mean that the speaker validation process is performed only on the speech of the intended speaker, in the event of a tail-gating speech attack. However, the anti-spoofing module 226 and the speaker validation module 204 may be configured such that the speaker validation process is performed only on the live speech of the intended speaker, in the event of a replay attack. In addition, the output of anti-spoofing module 226 may be used to reset the operation of the speaker validation module 204 in the event of detection of “unsafe” received audio.

The output of the anti-spoofing module 226 and the output of the speaker change detection module 228 may be combined or fused, for example using an AND gate 230, to provide an indication that the received audio is or is not valid. Such an indication may then be output by the audio validation module 206 as output 206 a, for use in the decision gating module 208.

In an alternative embodiment, it will be understood that the output 206 a of the audio validation module 206 may comprise both the output of the anti-spoofing module 226 and the output of the speaker change detection module 228, and wherein the fusion or combination of such outputs may be performed in the decision gating module 208, to provide an audio validity result.

In addition, for embodiments wherein the output of the audio validation module 206 is used as an input to the speaker verification module 204, it will be understood that the input to the speaker verification module 204 may comprise the combined or fused output 206 a, and/or comprise some combination of the individual outputs of the anti-spoofing module 226 and the speaker change detection module 228, shown in FIG. 14 as outputs 226 a and 228 a respectively.

FIG. 15 provides an illustration of an embodiment of the decision gating module 208, which receives the output 204 a of the speaker validation module 204 and the output 206 a of the audio validation module 206. The decision gating module 208 comprises a speaker validity check 232 which checks whether a speaker has been identified from the received audio from the output 204 a of the speaker validity module 204, and further comprises an audio validity check 234 which checks whether the received audio is valid from the output 206 a of the audio validity module 206. If both checks are passed, the decision gating module 208 comprises a power gating or fusion module 236, which is arranged to generate an output signal 208 a. The output 208 a of the decision gating module 208 may comprise a simple enable signal to allow for the power-gating of downstream processing systems, as described above. In a further aspect, the output 208 a may comprise an indicator of the speaker initially identified by the speaker validation module 204. Additionally or alternatively, the output 208 a may comprise the speaker ID score 204 a, which may be used in a subsequent score fusion operation as described above. The output 208 a may further comprise the output 206 a of the audio validation module 206, which may be provided as a single indicator of the validity of the received audio, or which may comprise separate outputs relating to the specific anti-spoofing or speaker change detection scores. The provision of such scores may allow for further downstream processing of anti-spoofing and/or speaker change detection processes. It will be understood that the output 208 a of the decision gating module 208 may be used as the output signal from the speaker verification system 200.

In a preferred embodiment, and as described above, the output of the speaker verification system 200 may be used in combination with a secondary biometrics system, e.g. to a second integrated circuit 144, 152, 162 as described in the embodiments above, wherein the speaker verification system 200 is provided as a primary biometrics system, e.g. as the first integrated circuit 140, 150, 160 as described in the embodiments above. The primary biometrics scoring may be performed as part of a relatively low power system, e.g. an always-on system or a low-power island within a device such as a mobile phone handset or device accessory. Accordingly, the primary biometrics scoring is operable to power-gate the secondary biometrics scoring, which may be provided as part of a relatively high-power system, e.g. a device applications processor or dedicated biometrics chip having relatively high processing power. Preferably, the primary and secondary systems are selected to perform different biometrics scoring on the received audio.

In a preferred embodiment, the speaker recognition system is configured such that:

-   -   the primary biometrics scoring is selected to have a relatively         high False Acceptance Rate (FAR), and a relatively low False         Rejection Rate (FRR); and     -   the secondary biometrics scoring is selected to have a         relatively low FAR, and a relatively high FRR.

Having such a configuration of scoring methods, any subsequent fusion of the biometric scores will result in a combined score having low FAR and low FRR.

FIG. 16 provides a flow chart for an embodiment of a speaker verification method implemented by the systems shown in FIGS. 12-15.

Upon start (step 300), the method receives audio comprising speech (step 302). As a first step performed by the speaker validation module 204, classification of the received audio is performed (step 304) to identify acoustic classes or sound mixtures present in the received audio. It will be understood that this step may comprise a feature extraction from the received audio.

After classification, speaker recognition is performed (step 306) based on stored speaker models (step 308) to at least initially identify the speaker from the received audio. The speaker recognition (step 306) produces a speaker ID score which may comprise a probability or likelihood that the speech is that of one specific enrolled speaker. The speaker ID score may then be used as the output 204 a of the speaker validation module 204 (step 310).

In parallel to the operation of the speaker validation module 204, the audio validation module 206 is arranged to perform the steps of performing an anti-spoofing check (step 312) based on the received audio and the identified audio classification, and/or a speaker change detection check based on the received audio, the identified audio classification, and/or the speaker ID score (step 314). In the embodiment shown, the outputs of both the anti-spoofing check (step 312) and the speaker change detection check (314) are combined to provide the output 206 a of the audio validation module 206 (step 316).

The outputs produced by steps 310 and 312 are combined at a decision gating check (step 318), which checks that a speaker has been identified for received audio, and that the received audio is valid. At step 320, if such a check is passed, then an output accordingly may be generated (step 322) which may be used for power gating and/or further downstream processing, as described above. If the check at 320 is not passed, then the system may return to receiving audio.

It will be understood that the system may be configured to provide further outputs based on the individual steps of the above-described method. For example, if the anti-spoofing module identifies that a spoof or a replay attack is taking place, the system may generate a warning to a user, or may act to restrict device access until a further authorisation check is passed. In addition, and as described above, the detection of a speaker change detection in the received audio may prompt the system to generate an output based on the total audio received for a specific speaker, the speaker change setting a boundary for the processing of the audio to identify a speaker from the received audio.

The above-described systems may be provided with additional security measures to prevent against malicious access to potentially sensitive data. In a preferred example, the systems may be configured to clear or wipe the contents of any data buffers based on the output of the various modules. For example, in the event of an anti-spoof module detecting that a spoof or a replay attack is taking place, the system may be arranged to wipe the contents of the audio buffers or any other buffers to prevent access to any sensitive data.

In the above-described systems, it will be understood that the individual biometric scoring systems, speaker recognition systems, anti-spoofing systems, and/or speaker change detection systems may comprise a plurality of different respective scoring systems, wherein the output of such systems may be combined or fused to provide a single output.

In a further aspect of the invention, and in an effort to reduce the overall latency of the system, the output of the first biometric process may be used to speculatively initiate the second biometric process. In particular, the speculative starting of the second biometric process may be initiated once the output of the first biometric process has reached a first threshold value indicating that an enrolled user has been provisionally recognised by the first biometric process. For example, the output of the first biometric process may comprise a probability estimate that the received speech is that of an enrolled speaker, wherein a confidence level that such a probability estimate is correct increases over time, due to the greater duration of received speech available to the first biometric process.

An example of how such an embodiment may operate is provided in FIG. 17.

In FIG. 17, an example of received audio comprising speech is indicated at 400, with examples of the outputs of various biometric processes plotted over time in response to the received speech. A1 is the output of a speaker verification process based on a first biometric process and B1 is the output of a speaker verification process based on a second biometric process, when configured in a purely sequential system. A2 is the output of a speaker verification process based on a first biometric process and B2 is the output of a speaker verification process based on a second biometric process, when configured in a system allowing for speculative initiation of the second biometric process.

For the sequential system, an audio sample 400 comprising a speech command (“OK Computer, what is the weather like for today?”) is received at starting time t0, wherein the output A1 of the speaker verification process of the first biometric process performed on the audio 400 is tracked following time t1. The first biometric process continues until the output reaches threshold P1 at time t2, indicating that a particular user has been identified. As described above, the initial identification of a user by the first biometric process is effectively used to power-gate the second biometric process. Accordingly, the output A2 of the speaker verification process of the second biometric process is tracked following time t3. The second biometric process continues until the output reaches threshold P2 at time t4, thereby indicating that the second biometric process has identified a user from the received audio. As described above, such an identification may be combined or fused with the output of the first biometric process, and/or may be used to trigger further downstream processing of the received audio or to allow the identified user authorised access to features or services.

In a system allowing for speculative initiation of the second biometric process, the speaker verification process of the first biometric process continues as before, producing output A2. However, once output A2 has reached a threshold level P3 at time t5, threshold P3 being less than threshold P1, the system is configured to initiate speculative processing of the second biometric process at time t6 closely after t5, which is indicated by the output B2 commencing at t6. In the embodiment shown, threshold P3 is selected to be equivalent to a threshold indicative of a probability level equivalent to 60% of P1 that a particular user has been identified, but it will be understood that other threshold levels may be chosen, e.g. 50% of P1, 75% of P1, etc.

The speaker verification process for the second biometric process continues as before until the defined threshold P2 for safely identifying a user is reached. However, due to the speculative initiation of the second biometric process at the earlier time t6, P2 can be reached at time t7, which is faster by time Δt than the total time t4 taken by the sequential system. The time difference Δt represents a reduction in the overall latency of the system by the use of such a speculative initiation process.

For the speculative initiation use-case, it will be understood that if the output A2 of the first biometric process later indicates at time t2 that the received audio is not from the previously-provisionally-identified user, and/or if the audio validation module of the first device indicates that the received audio 400 is not valid, e.g. due to a spoof detection or a speaker change detection, then the first device may be configured to instruct the second biometric process of the second device to halt any further processing at time t2, and any buffers or cache provided with the second biometric process cleared or reset for future operation.

It will be understood that speculatively initiating the second biometric process after the first biometric process has been running for time t5 (indicative of the time to reach the threshold P3), instead of the full time t2 (the time to reach the threshold P2) will result in the power-gating of the second process to be enabled based on a relatively weak first biometric process (effectively a process having a relatively high FAR and a relatively low FRR), with a more confident speaker validation of the received audio provided at time t2.

It will be understood that the above speculative initiation use-case may be implemented for any of the above-described embodiments, e.g. wherein the speaker verification process for the first biometric process is performed by the Vbio1 module 82, the Vbio1A module 120, or the speaker validation module 204, with the speaker verification process for the second biometric process performed by the appropriate Vbio2 module 84.

It will be further understood that the above comments regarding pre-processing module 80 may equally apply to the embodiments of FIGS. 12-16, i.e. that a pre-processing module may be used to provide a plurality of different signals to different processing modules of the system, e.g. a sampled or framed digital signal, a continuously-streamed digital signal, a continuously-streamed analog signal. As a result, the speaker validation module 204, the audio validation module 206, and/or the trigger detect module 210 may utilise one or more of the different signals in their respective processing systems.

In addition, it will be understood that the embodiments of FIGS. 12-16 may further comprise additional input data in the form of predefined characteristic information regarding the input 202 and/or a monitoring system configured to monitor the operational characteristics of the input 202. The processing modules of the speaker validation module 204, the audio validation module 206, and/or the trigger detect module 210 may utilise such device-specific data in their respective processes, to account for device-specific characteristics and nonlinearities.

In a further aspect, while the above-described embodiments utilise a first voice biometric process as the first scoring system, it will be understood that the first voice biometric process may be replaced by any other suitable biometric process, for example an ear biometric process. For embodiments having an ear biometric process, it will be understood that the system may be provided with a plurality of microphones or audio transceivers, wherein at least one microphone or audio transceiver is configured to output an audio signal representing an audio response proximate to a user's ear.

Such an ear biometric process may be used to power gate the voice biometric process. The ear biometric process will be different to the voice biometric process, thereby providing individual discriminative results. Preferably the outputs of the ear biometric process and the voice biometric process may be combined or fused to provide an output to identify a user. In such an embodiment, it will be understood that the ear biometric process may be performed in a device such as a headset or earphone, with the voice biometric process performed in the same device, or in a coupled host device, e.g. a mobile phone handset. Alternatively, the ear biometric process and the voice biometric process may be performed in the same host device, e.g. a mobile phone handset. It will be understood that the first audio signal may comprise an ultrasonic audio signal and/or an audio signal in the audible range. An example of a system having both ear and voice biometric processes, and additionally where the outputs of such processes are fused, may be found in co-pending U.S. patent application Ser. No. 16/118,950, which is incorporated by reference herein.

FIG. 18 illustrates an embodiment of such a system.

Specifically, FIG. 18 shows a speaker verification system 500, which receives audio comprising speech from an input 502 such as a high-resolution microphone. The system 500 comprises a first device 504 and a second device 506.

As described previously, the first device 504 may be an accessory device such as a headset or other wearable device, while the second device 506 is a host device such as a smartphone or other suitable device. In other embodiments, the first and second devices 504, 506 are separate integrated circuits within a product such as a smartphone, for example. The first and second devices 504, 506 may be supplied independently of each other. The form of the first device is not dependent on the form of the second device, and the form of the second device is not dependent on the form of the first device.

The first device 504 has some similarity to the device illustrated in FIG. 12, and is described in more detail above. Thus, the first device 504 comprises a first biometric validation module 508, and an audio validation module 510.

The first biometric validation module 508 is connected to an input and/or output module 512, and performs an initial user validation process, which results in an output in the form of a user ID score representing an initial likelihood that the user is a particular enrolled user. In general, the first biometric validation module 508 may operate with any suitable biometric, such as a retina scan, a fingerprint scan, an ear biometric, and a voice biometric. In addition, the first biometric validation module 508 may operate with any combination of suitable biometrics, with the scores generated by the different biometrics being combined, or fused, to produce a user ID score representing an initial likelihood that the user is a particular enrolled user. The input and/or output module 512 comprises suitable inputs and/or outputs for use with the first biometric validation module 508. For example, when the first biometric validation module 508 operates with a retina scan or a fingerprint scan, the input and/or output module 512 comprises a camera; when the first biometric validation module 508 operates with an ear biometric, the input and/or output module 512 comprises a microphone and a loudspeaker; and when the first biometric validation module 508 operates with a voice biometric, the input and/or output module 512 comprises at least a microphone.

More specifically, in one embodiment the first biometric validation module 508 is an ear biometric validation module. When the first biometric process is initiated, a signal is sent from the first biometric validation module 508 to the input/output module 512, causing a test acoustic signal to be generated in the region of a user's ear. The test acoustic signal may conveniently be an ultrasonic signal, for example in the region of 18 kHz to 48 kHz. The input/output module 512 may therefore include a loudspeaker, for example located in an earphone being worn by the user.

The input/output module 512 may also include a microphone, again for example located in an earphone being worn by the user, and positioned such that it can detect the test acoustic signal after it has been modified by its interaction with the ear of the user.

The signal detected by the microphone is then supplied to the first biometric validation module 508 for analysis. Specifically, the modification of the acoustic signal that is caused by the interaction with the ear of the user is compared with a model of the ear of one or more enrolled user, and the first biometric validation module 508 then generates one or more corresponding user ID score, representing an initial likelihood that the user is that enrolled user.

Meanwhile, the audio validation module 510 is configured to determine if the received audio is valid or invalid. In particular, the audio validation module 510 is configured to detect if the received audio is all from a single speaker, and/or to determine if the received audio is genuine audio, or is the product of a spoof or replay attack, wherein a hacker or other malicious actor is trying to deceive the speaker verification system 500. As described with reference to FIG. 14, the audio validation module 510 may include an anti-spoofing module and/or a speaker change detection module.

The output of the audio validation module 510 is used in a decision gating module 514, such that the output of the first device 504 is only allowed (a) when the first biometric validation module 508 has made an initial determination that the user is the enrolled user, and (b) when the audio validation module 510 has determined that the received audio is valid. Accordingly, the output of the audio validation module 510 is used to gate the output of the first biometric validation module 508 at the gating module 514.

Thus, the link between the first device 504 and the second device 506, which may be a wired or wireless link, is enabled only if the output of the first device 504 is allowed.

Gating the first biometric verification output by using an audio validity check to confirm that the received audio is valid ensures that the final speaker verification result is only used for audio which is not from a replay attack or a spoof attack, and additionally or alternatively, ensures that the received audio used in the speaker verification is from the same speaker, and is not from a combative or tail-gating attack.

The output of the decision gating module 514 may be used as an input to the second device 506, and more specifically to a speaker validation block 516, which operates with a relatively more discriminative secondary biometrics scoring process. In particular, the secondary biometric process may be a voice biometric process. The output of the decision gating module 514 may comprise the user ID score from the first biometric validation module 508, which may be fused with the output of the second biometric validation block 516 to produce an overall speaker verification output 518.

The voice biometric process performed by the speaker validation block 516 may be configured to be more discriminative than the ear biometric process or other biometric process performed by the first biometric validation block 508.

The system 500 may be provided, for example in the first device 504, with a trigger detection module 520, which is arranged to initialise the first biometric validation system 508 on detection of a suitable trigger. Such a trigger may comprise a voice keyword detected in the received audio, e.g. a trigger phrase such as “Hello Computer” or similar. Additionally or alternatively, the trigger detection may receive inputs from other sources, e.g. system inputs such as button presses, proximity detection, optical sensors, etc. which may be indicative of user interaction with the speaker verification system 500. In further embodiments, the trigger detection module 520 may itself comprise a “lightweight” biometric module, that is a low-power, but relatively non-discriminative biometric.

For example, the biometric process performed by the first biometric validation block 508 may be initiated only if the biometric process performed by the trigger detection module 520 indicates that an enrolled user may be speaking. For example, the biometric process performed by the trigger detection module 520 may comprise confirming whether the main frequency component of the detected speech (for example, when a predetermined trigger phrase is detected) is consistent with the expected enrolled user.

In an additional aspect, the system 500 may be provided, for example in the first device 504 as shown in FIG. 18 (though it may be in the second device 506 or elsewhere in a device such as a smartphone) with an audio buffer 522 arranged to buffer the audio received from the input 502. Such a buffer 522 may be used as described in the above embodiments, wherein the buffered audio may be provided to the second biometrics module 516 for further processing. The output of the buffer 522 may be controlled by the gating module 514, such that data is only sent for further processing when it is determined that the received audio is valid, and when the first biometric validation module 508 has determined that the user is an enrolled user. By outputting the buffered audio on an output 524 along with a valid speaker recognition output, further processing of the received audio may be performed, with an initial determination that the received audio is that of a particular speaker. Such additional processing may comprise speech recognition of the received audio for use in command processing, or the received audio may be processed using a more discriminative speaker recognition process, for example for relatively high security operations.

It will be understood that the details of the above-described embodiments may also apply to embodiments wherein the first voice biometric process is replaced by any other suitable biometric process, and not necessarily an ear biometric process.

In a further aspect of the invention, the system may be configured to allow partial access to services, functions, or stored data of a device based on the output of the first biometric process, with complete access to all services, functions, or stored data only allowed based on the output of the second biometric process. For example, in embodiments having speculative automatic speech recognition (ASR) for voice command processing, where ASR may be performed to identify user voice commands in parallel with the first biometric process to identify a user, access to relatively low-security or low-sensitivity services or applications may be enabled based on the output of the first biometric process, and commands relating to such services may be executed after ASR processing has identified an appropriate command relating to such services.

For example, a mobile phone device may allow commands relating to the operation of music services or information queries such as weather forecasting applications to be performed based on the output of the first biometric process. However, when the commands relate to relatively high-security or high-sensitivity services, e.g. banking applications, personal data, etc., then access may be enabled or commands acted upon only when the second biometric process has provided a positive user identification.

Allowing for such speculative execution of commands relating to some applications based on the first biometric process may act to reduce latency and provide improved user interaction of the device, while preserving the relatively high security requirements for relatively sensitive applications, where a user may be less concerned about responsiveness as long as the high security access level is maintained.

In a further aspect of the invention, the system may be configured to provide for different bandwidths or sample rates between the first and second devices.

The system may be configured to vary the sample rates between processes. For example, speech used in an Automatic Speech Recognition (ASR) process may have a lower bandwidth requirement than speech used in a voice biometrics process, which may itself have a lower bandwidth requirement when compared with a high-accuracy anti-spoofing process. Preferably, an ASR process may be provided with an audio signal having a sample rate of approximately 8 kHz, a voice biometrics process may be provided with an audio signal having a sample rate of approximately 16 kHz; and an anti-spoofing process may be provided with an audio signal having a sample rate of approximately 192 kHz.

FIG. 19 illustrates an embodiment of such a system.

Specifically, FIG. 19 shows a speaker verification system 401, which receives audio comprising speech from an input 402 such as a high-resolution microphone that is capable of generating signals with a high sample rate such as 192 kHz, or any other suitable interface or audio transceiver for receiving audio signals. The system 401 comprises a first device 404 and a second device 406.

As described previously, the first device 404 may be an accessory device such as a headset or other wearable device, while the second device 406 is a host device such as a smartphone or other suitable device. In other embodiments, the first and second devices 404, 406 are separate integrated circuits within a product such as a smartphone, for example. The first and second devices 404, 406 may be supplied independently of each other. The form of the first device is not dependent on the form of the second device, and the form of the second device is not dependent on the form of the first device.

The first device 404 is generally similar to the device illustrated in FIG. 12, and described in more detail above. Thus, the first device 404 comprises a speaker validation module 408, and an audio validation module 410. The speaker validation module 408 performs an initial speaker validation process on the received audio from the input 402, and provides outputs in the form of a speaker ID score representing an initial likelihood that the received speech is from a particular speaker and a sound classification representing the likelihood that the received speech is a particular acoustic class.

The audio validation module 410 is configured to determine if the received audio is valid or invalid. In particular, the audio validation module 410 is configured to detect if the received audio is all from a single speaker, and/or to determine if the received audio is genuine audio, or is the product of a spoof or replay attack, wherein a hacker or other malicious actor is trying to deceive the speaker verification system 401. The speaker validation module 408 is coupled with the audio validation module 410, such that the audio validation module 410 makes the determination on whether the received audio is valid or invalid based at least in part on the output of the speaker validation module 408. In particular, the output of the audio validation module 410 is based at least in part on the sound classification representing the likelihood that the received speech is a particular acoustic class, which is output by the speaker validation module 408. By using the sound classification output from the speaker verification process in the audio validation process, accordingly the resources required for such an audio validation process may be minimised, and associated latency reduced.

The output of the audio validation module 410 is used in a decision gating module 412, such that the output of the first device 404 is only allowed (a) when the speaker validation module 408 has made an initial determination that the received speech is the speech of an enrolled user, and (b) when the audio validation module 410 has determined that the received audio is valid. Accordingly, the output of the audio validation module 410 is used to gate the output of the speaker validation module 408 at the gating module 412. Gating the speaker verification output by using an audio validity check to confirm that the received audio is valid ensures that the speaker verification result is only used for audio which is not from a replay attack or a spoof attack, and additionally or alternatively, ensures that the received audio used in the speaker verification is from the same speaker, and is not from a combative or tailgating attack.

The output of the decision gating module 412 may be used as an input to the second device 406, and more specifically to a speaker validation block 414, which operates with a relatively more discriminative secondary biometrics scoring process. The output of the decision gating module 412 may comprise the speaker ID score from the speaker validation module 408, which may be fused with the output of the second speaker validation block 414 to produce an overall speaker verification output 416.

The system 401 may be provided, for example in the first device 404, with a trigger detection module 418, which is arranged to initialise the speaker validation module 408 on detection of a suitable trigger. Such a trigger may comprise a voice keyword detected in the received audio, e.g. a trigger phrase such as “Hello Computer” or similar. Additionally or alternatively, the trigger detection may receive inputs from other sources, e.g. system inputs such as button presses, proximity detection, optical sensors, etc. which may be indicative of user interaction with the speaker verification system 401.

In an additional aspect, the system 401 may be provided, for example in the first device 404 as shown in FIG. 19 (though it may be in the second device 406 or elsewhere in a device such as a smartphone) an audio buffer 420 arranged to buffer the audio received from the input 402. Such a buffer 420 may be used as described in the above embodiments, wherein the buffered audio may be provided to the second biometrics module 414 for further processing. The output of the buffer 420 may be controlled by the gating module 412, such that data is only sent for further processing when it is determined that the received audio is valid, and that the speaker validation module 408 has determined that the received audio comprises speech from an enrolled user. By outputting the buffered audio along with a valid speaker recognition output, accordingly further processing of the received audio may be performed, with an initial determination that the received audio is that of a particular speaker. Such additional processing may comprise speech recognition of the received audio for use in command processing, or the received audio may be processed using a more discriminative speaker recognition process, for example for relatively high security operations.

As mentioned above, the first device 404 may be configured to receive an input signal having a relatively high sample rate, and therefore a relatively high bandwidth. Such a high bandwidth signal may be required by an anti-spoofing module, for example if the anti-spoofing module is configured for identifying the presence or absence of ultrasonic frequencies in the received audio, and using the presence or absence of the ultrasonic frequencies as an indication as to whether the audio signal results from a replay attack.

Such a high sample rate is not usually required for a voice biometrics process, and therefore FIG. 19 shows that the input signal is applied to a downsampler 422, and it is the decimated or downsampled version of the input signal that is passed to the speaker validation block 408, and also to the audio buffer 420.

One possibility is that, for example if the speaker verification system 401 determines that the person speaking is a properly enrolled speaker, the audio signal may be passed to downstream processing components. For example, the audio signal may be passed to an automatic speech recognition (ASR) system, which identifies the content of the speech, by contrast with a speaker recognition system, which provides information about a person who is speaking.

An ASR system may operate with a signal having a sample rate even lower than that required by a voice biometrics system, and therefore the output of the audio buffer 420 may be passed to a second downsampler 424 before it is supplied on an output 426 to a subsequent processing block that performs the ASR process. The subsequent processing block that performs the ASR process may be provided in the same product as the first device 404 and/or the second device 406, or it may be provided remotely.

The supply of the further downsampled or decimated signal on the output 426 may be controlled such that a signal is only supplied to the subsequent processing block if the second speaker validation process has confirmed that the person speaking is a properly enrolled speaker.

Thus, the first device may perform a decimation of the sample rate of the received audio, wherein the second device is configured to process the decimated version of the received audio. The decimation may be adjustable based on input received from downstream processing components, e.g. sample rate requirements for processing operations performed by the downstream components. A reduced bandwidth or sample rate between modules or devices can provide improved overall system efficiency due to a reduction in power consumption of the system, for example when the first device is located separate to the second device, and connected using e.g. a wireless data link, a reduction in the bandwidth of data to be communicated via said link can provide improvements to the power consumption and battery life of such devices.

Additionally or alternatively, the first device may be configured to not initialise communications links between the first and second devices if the audio is not verified or validated by the system of the first device, e.g. not initialise a wireless communications modem within the first device.

FIG. 20 is a block diagram showing a system in accordance with a further embodiment.

Specifically, FIG. 20 shows an electronic device 440, which may for example take the form of a smartphone or other handset, or a smart speaker, but which may in general be any device with a degree of voice activation or control.

In the device of FIG. 20, the signal processing is divided between at least two integrated circuits. Specifically, FIG. 20 shows a first processing integrated circuit 450, which may for example be an audio codec integrated circuit. In addition, FIG. 20 shows a second processing integrated circuit 460, which may for example be an applications processor integrated circuit. In a device 440 such as a smartphone, the first processing integrated circuit 450 and the second processing integrated circuit 460 may be supplied by different manufacturers, and neither manufacturer may have access to the detailed specification of the other manufacturer's integrated circuit.

It will be appreciated that the device 440 will include many other components, depending on the form of the device, but the level of detail shown in FIG. 20 is sufficient for an explanation of the present embodiment.

FIG. 20 shows a microphone 442, which in the case of a smartphone is typically or primarily used for detecting a user's voice. This embodiment is concerned with voice control or voice activation, where a user can issue spoken commands, which will be acted upon by the device, either to control some aspect of the functioning of the device itself, or to control some separate device, for example in the case of a home automation application.

As is conventional, a voice biometrics module, Vbio2, 462 is provided, and this performs a speaker recognition function, in order to determine whether any detected speech was spoken by an enrolled user. If it is determined that an enrolled user, or the enrolled user, is speaking, the detected speech is sent for speech processing, in which the content of the speech is determined, so that any command can be acted upon. However, if it is determined that the detected speech was not spoken by an enrolled speaker, the detected speech is not sent for speech processing.

Speaker recognition is itself relatively computationally intensive, and so it is preferred that the speaker recognition function should not be operating the whole time. Rather, the user is given (or may choose) a trigger phrase, which must be spoken in order to activate the speaker recognition function.

Thus, the signal generated by the microphone 442 is passed to a voice keyword detection block 464, which attempts to detect the trigger phrase in the detected speech. It is only when the voice keyword detection block 464 detects the trigger phrase in the detected speech that the voice biometrics module, Vbio2, 462 may be activated.

However, activating the voice biometrics module, Vbio2, 462 whenever the voice keyword detection block 464 detects the trigger phrase in the detected speech may result in a number of unnecessary activations. For example, in an environment where there are several voice activated devices, using the same trigger phrase, the respective users of those devices may be uttering the same trigger phrase relatively often, with each utterance of the trigger phrase causing the voice keyword detection block in every one of the devices to activate its associated voice biometrics module.

In order to reduce the number of unnecessary activations of the voice biometrics module, an additional, preliminary voice biometrics module, Vbio1, 452 is provided.

In the situation illustrated in FIG. 20, in which the voice biometrics module, Vbio2, 462 and the voice keyword detection block 464 are provided in the applications processor integrated circuit 460, the additional, preliminary voice biometrics module, Vbio1, 452 may be provided in the audio codec integrated circuit 450.

The preliminary voice biometrics module, Vbio1, 452 may be a relatively “lightweight” biometric module, that is a low-power module, but providing a relatively non-discriminative biometric, given that the final decision as to the identity of the speaker will be taken by the voice biometrics module 462. For example, the preliminary voice biometrics module, Vbio1, 452 may be a Gaussian Mixture Model (GMM)-based system with a small number of mixtures (and, correspondingly, a relatively high Equal Error Rate or False Acceptance Rate), or a Deep Neural Network (DNN) with a small number of weights (and, correspondingly, a relatively high Equal Error Rate or False Acceptance Rate).

As illustrated in FIG. 20, the preliminary voice biometrics module, Vbio1, 452 is operating in “always on” mode, meaning that it performs the voice biometric process on all of the speech that it detects. In other embodiments, the preliminary voice biometrics module, Vbio1, 452 may be activated in response to a detection of speech by a voice activity detection block in the codec 450, or in response to the detection of the trigger phrase by a voice keyword detection block in the codec 450 that is operating with a low False Reject Rate.

In any event, the preliminary voice biometrics module, Vbio1, 452 produces an output indicating whether the detected speech is the speech of an enrolled user.

As shown in FIG. 20, the output of the preliminary voice biometrics module, Vbio1, 452, and the output of the voice keyword detection block 464 are supplied to a combination block 466, which may also be provided in the applications processor 460.

In one embodiment, the preliminary voice biometrics module, Vbio1, 452 generates a score indicating the likelihood that the detected speech is the speech of an enrolled user, and compares this score with a threshold, in order to produce a binary output, indicating whether or not the detected speech is considered to be the speech of the enrolled user. Similarly, the output of the voice keyword detection block 464 is a binary output, indicating whether or not the trigger phrase has been detected.

The combination block 466 then effectively performs an AND operation on the binary outputs of the preliminary voice biometrics module, Vbio1, 452 and the voice keyword detection block 464. That is, the combination block 466 produces a positive output if the preliminary voice biometrics module, Vbio1, 452 generates an output indicating that the detected speech is considered to be the speech of the enrolled user, and the voice keyword detection block 464 produces a binary output, indicating that the trigger phrase has been detected.

In another embodiment, the preliminary voice biometrics module, Vbio1, 452 generates a score indicating the likelihood that the detected speech is the speech of an enrolled user, and this score is used as the output of the module. Similarly, the output of the voice keyword detection block 464 is a score, indicating a likelihood that the detected speech contains the trigger phrase.

The combination block 466 then combines the scores provided to it by the preliminary voice biometrics module, Vbio1, 452 and the voice keyword detection block 464, for example by generating a weighted sum of the scores. The combined score, for example the weighted sum, is then compared with a threshold, and the combination block 466 produces a positive output if the combined score exceeds the threshold. This combination means that a positive output is generated if there is a sufficiently high probability that the detected speech was the speech of the enrolled user, and that it contained the trigger phrase.

In either of these embodiments, the voice biometrics module, Vbio2, 462 is activated in the event of a positive output from the combination block 466.

In the embodiments in accordance with FIG. 20, the voice biometrics module, Vbio2, 462 operates in the normal way when it has been activated.

FIG. 21 illustrates an alternative embodiment, in which the operation of the speaker recognition function in the applications processor 460 is modified. The embodiment shown in FIG. 21 is as described with reference to FIG. 20, except as described below.

Specifically, the output of the voice biometrics module, Vbio2, 462 is passed to a second combination block 468, which also receives an output from the preliminary voice biometrics module, Vbio1, 452.

In one embodiment, the preliminary voice biometrics module, Vbio1, 452 generates a first score indicating the likelihood that the detected speech is the speech of an enrolled user, and compares this first score with a first threshold, in order to produce a binary output, indicating whether or not the detected speech is considered to be the speech of the enrolled user.

The first threshold may be the same as the threshold that is applied when supplying an output to the combination block 466.

Alternatively, the first threshold may be higher than the threshold that is applied when supplying the output to the combination block 466, such that a looser test is applied when deciding whether to fully activate the speaker recognition, and a stricter test is applied when deciding whether the speech passes the speaker recognition test.

Similarly to the preliminary voice biometrics module, Vbio1, 452, the voice biometrics module, Vbio2, 462 generates a second score indicating the likelihood that the detected speech is the speech of an enrolled user, and compares this second score with a second threshold, in order to produce a binary output, indicating whether or not the detected speech is considered to be the speech of the enrolled user.

The combination block 468 then effectively performs an AND operation on the binary outputs of the voice biometrics modules, 452 and 462. That is, the combination block 468 produces a positive output if the preliminary voice biometrics module, Vbio1, 452 generates an output indicating that the detected speech is considered to be the speech of the enrolled user, and the voice biometrics module, Vbio2, 462 also generates an output indicating that the detected speech is considered to be the speech of the enrolled user.

In another embodiment, the preliminary voice biometrics module, Vbio1, 452 generates a score indicating the likelihood that the detected speech is the speech of an enrolled user, and this score is used as the output of the module. Similarly, the output of the voice biometrics module, Vbio2, 462 is a score indicating the likelihood that the detected speech is the speech of the enrolled user.

The combination block 468 then combines the scores provided to it by the preliminary voice biometrics module, Vbio1, 452 and the voice biometrics module, Vbio2, 462, for example by generating a weighted sum of the scores. The combined score, for example the weighted sum, is then compared with a threshold, and the combination block 468 produces a positive output if the combined score exceeds the threshold. This combination means that a positive output is generated if the two voice biometrics modules 452, 462 together determine that there is a sufficiently high probability that the detected speech was the speech of the enrolled user.

Thus, the speaker recognition functionality can be improved, because the preliminary voice biometrics module, Vbio1, 452 and the voice biometrics module, Vbio2, 462 can be configured to examine different features of the speech, making the overall speaker recognition process more accurate.

If the combination block 468 generates an output indicating that the detected speech was the speech of the enrolled user, suitable further action can be taken. For example, the signal containing the speech can be forwarded to a speech recognition module, either in the device 440 or on a remote server, so that the spoken command can be interpreted. The command can then be acted upon, either in the device 440 or elsewhere.

Thus, the embodiments shown in FIGS. 20 and 21 reduce unnecessary operation of the speaker recognition functionality in the second processor device 460, thereby saving power. Moreover, this is achieved without any need for the details of the speaker recognition functionality performed by the voice biometrics module, Vbio2, 462 to be released outside the second processor device 460. Similarly, there is no need for the details of the voice keyword detection functionality performed by the VKD block 464 to be released outside the second processor device 460.

The skilled person will recognise that some aspects of the above-described apparatus and methods may be embodied as processor control code, for example on a non-volatile carrier medium such as a disk, CD- or DVD-ROM, programmed memory such as read only memory (Firmware), or on a data carrier such as an optical or electrical signal carrier. For many applications embodiments of the invention will be implemented on a DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit) or FPGA (Field Programmable Gate Array). Thus the code may comprise conventional program code or microcode or, for example code for setting up or controlling an ASIC or FPGA. The code may also comprise code for dynamically configuring re-configurable apparatus such as re-programmable logic gate arrays. Similarly the code may comprise code for a hardware description language such as Verilog™ or VHDL (Very high speed integrated circuit Hardware Description Language). As the skilled person will appreciate, the code may be distributed between a plurality of coupled components in communication with one another. Where appropriate, the embodiments may also be implemented using code running on a field-(re)programmable analogue array or similar device in order to configure analogue hardware.

Note that as used herein the term module shall be used to refer to a functional unit or block which may be implemented at least partly by dedicated hardware components such as custom defined circuitry and/or at least partly be implemented by one or more software processors or appropriate code running on a suitable general purpose processor or the like. A module may itself comprise other modules or functional units. A module may be provided by multiple components or sub-modules which need not be co-located and could be provided on different integrated circuits and/or running on different processors.

Embodiments may be implemented in a host device, especially a portable and/or battery powered host device such as a mobile computing device for example a laptop or tablet computer, a games console, a remote control device, a home automation controller or a domestic appliance including a domestic temperature or lighting control system, a toy, a machine such as a robot, an audio player, a video player, or a mobile telephone for example a smartphone.

It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. The word “comprising” does not exclude the presence of elements or steps other than those listed in a claim, “a” or “an” does not exclude a plurality, and a single feature or other unit may fulfil the functions of several units recited in the claims. Any reference numerals or labels in the claims shall not be construed so as to limit their scope. 

The invention claimed is:
 1. An electronic device comprising: a first processor integrated circuit; and a second processor integrated circuit separate to the first processor integrated circuit, wherein: the first processor integrated circuit is configured to perform a preliminary speaker recognition function on a received signal representing speech to generate a first speaker recognition output; the second processor integrated circuit is configured to perform a voice keyword detection function on the received signal to detect a presence of a trigger phrase and output a voice keyword detection output indicating the presence of the trigger phrase; the second processor integrated circuit is configured to combine the first speaker recognition output with the voice keyword detection output indicating the presence of the trigger phrase to generate an activation signal if there is an acceptably high probability that said speech is the speech of an enrolled user, and that it contained the trigger phrase; and the second processor integrated circuit is configured to perform a further speaker recognition function on the received signal in response to the activation signal, and to generate a second speaker recognition output; wherein the preliminary speaker recognition function is an always-on voice biometric function which is less processor intensive than the further speaker recognition function.
 2. An electronic device according to claim 1, wherein: the first processor integrated circuit is configured to perform the preliminary speaker recognition function and to generate a first score representing a likelihood that said speech is the speech of the enrolled user, to compare the first score with a first threshold, and to generate the first speaker recognition output based on said comparison; the second processor integrated circuit is configured to perform the voice keyword detection function and to generate a second score representing a likelihood that said speech contains said trigger phrase, to compare the second score with a second threshold, and to generate a keyword detection output based on said comparison; and the second processor integrated circuit is configured to combine the first speaker recognition output with an output of the voice keyword detection function by performing a binary AND operation on the first speaker recognition output and the keyword detection output.
 3. An electronic device according to claim 1, wherein: the first processor integrated circuit is configured to perform the preliminary speaker recognition function and to generate a first score representing a likelihood that said speech is the speech of the enrolled user, and to generate the first speaker recognition output based on said first score; the second processor integrated circuit is configured to perform the voice keyword detection function and to generate a second score representing a likelihood that said speech contains said trigger phrase; and the second processor integrated circuit is configured to combine the first speaker recognition output with an output of the voice keyword detection function by combining the first score and the second score, to compare a combination of the first score and the second score with a third threshold, and to generate said activation signal if the combination of the first score and the second score exceeds the third threshold.
 4. An electronic device according to claim 1, wherein: the first processor integrated circuit is further configured to generate a third speaker recognition output in response to performing the preliminary speaker recognition function on the received signal; and the second processor integrated circuit is further configured to combine the third speaker recognition output and the second speaker recognition output, and to generate a combined speaker recognition output therefrom.
 5. An electronic device according to claim 4, wherein: the first processor integrated circuit is configured to perform the preliminary speaker recognition function and to generate a first score representing a likelihood that said speech is the speech of the enrolled user, to compare the first score with a fourth threshold, and to generate the third speaker recognition output based on said comparison; the second processor integrated circuit is configured to perform the further speaker recognition function on the received signal in response to the activation signal, to generate a third score representing a likelihood that said speech is the speech of the enrolled user, to compare the third score with a fifth threshold, and to generate the second speaker recognition output based on said comparison; and the second processor integrated circuit is configured to combine the third speaker recognition output and the second speaker recognition output by performing a binary AND operation on the third speaker recognition output and the second speaker recognition output.
 6. An electronic device according to claim 5, wherein the fourth threshold is equal to the first threshold, such that the third speaker recognition output is always equal to the first speaker recognition output.
 7. An electronic device according to claim 5, wherein the fourth threshold is higher than the first threshold, such that the third speaker recognition output may differ from the first speaker recognition output.
 8. An electronic device according to claim 4, wherein: the first processor integrated circuit is configured to perform the preliminary speaker recognition function and to generate a first score representing a likelihood that said speech is the speech of the enrolled user, and to generate the third speaker recognition output based on said first score; the second processor integrated circuit is configured to perform the further speaker recognition function and to generate a third score representing a likelihood that said speech is the speech of the enrolled user, and to generate the second speaker recognition output based on said third score; and the second processor integrated circuit is configured to combine the third speaker recognition output and the second speaker recognition output by combining the first score and the third score, to compare a combination of the first score and the third score with a sixth threshold, and to generate a positive speaker recognition output if the combination of the first score and the third score exceeds the sixth threshold.
 9. An electronic device according to claim 1, wherein the electronic device comprises a smartphone.
 10. An electronic device according to claim 9, wherein the first processor integrated circuit comprises a codec.
 11. An electronic device according to claim 9, wherein the second processor integrated circuit comprises an applications processor. 